r - Why is permission denied for opening my file? -


here code r shiny app:

library(shiny) library(leaflet) library(nycflights13) library(dt)  r_colors <- rgb(t(col2rgb(colors()) / 255)) names(r_colors) <- colors()  parguera <- read.csv("c:/users/anatoly/documents/collatz/renamelater/renamelater/mapsandsuch") #monaisland <- #islacatalina <-  ui <- fluidpage(   titlepanel("noaa caribbean coral data"),   leafletoutput("mymap"),   p(),   actionbutton("laparguera", "la parguera data"),   actionbutton("mona", "mona island data"),   actionbutton("isla", "isla catalina data"),   dt::datatableoutput('tbl') )  server <- function(input, output, session) {    output$mymap <- renderleaflet({     leaflet() %>%       addtiles() %>%       addmarkers(lat = 17.95, lng = - 67.05, popup = "la parguera ") %>%       addmarkers(lat = 18.00, lng = -67.50, popup = "mona island") %>%       addmarkers(lat = 18.2, lng = -69.00, popup = "isla catalina")     })   observeevent(input$laparguera, {     output$tbl <- dt::renderdatatable(dt::datatable(parguera, options = list(pagelength = 25)))   }) }  shinyapp(ui, server) 

when run this, says permission denied.

when comment out line reading in csv file works, think problem lies there.

why happening?

thank you.

while not familiar tool, perhaps "path" file should read "c:\users\anatoly... instead of "c:/users/anatoly/...."


Comments

Popular posts from this blog

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -