Hello,
I try to upload my golem
app on shinyapps.io for shiny Contest but everytime errors are thrown. It's worth adding that locally everything works smoothly. I need to host my app there in no time, unfortunately I can't. Not sure where the problem lies, if it's on the golem side or somewhere else. Deploy got aborted with the error:
Warning message: Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw' (Using default: en_US)
In my app I have 2 places where I read csv / geojson, it looks like this:
github_csv <- read.csv("https://raw.githubusercontent.com/someTestAccount/data.csv", header = TRUE, stringsAsFactors = FALSE, sep = ";")
data_geojson <- sf::st_read(dsn = "https://raw.githubusercontent.com/someTestAccount/data.geojson")
I also followed this advice: Unable to deploy shiny app with shinyapps.io - Stack Overflow. In general, it's all about adding empty line at the end of csv. I tried but my dataset contains coordinates and they can not be empty. I don't know why it's a problem.
I also encountered this:
Warning in loadSupport(appDir, renv = sharedEnv, globalrenv = NULL) :
Starting R with process ID: '49'
Loading R/ subdirectory for Shiny application, but this directory appears to contain an R package. Sourcing files in R/ may cause unexpected behavior.
Not sure what it means, especially 'but this directory appears to contain an R package'. My whole golem
project is stored locally under given path and this is where I want ot deploy my app from. If you have any advices, please let me know. It's first time I deploy app on shinyapps.