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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

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