0

My app works very well locally. I used golem framework to write this shiny app. However, when I deploy app on shinyapps.io the following error comes up:

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:

github_csv <- read.csv("https://raw.githubusercontent.com/someAccount/data.csv", header = TRUE, stringsAsFactors = FALSE, sep = ";")
districts <- sf::st_read(dsn = "https://raw.githubusercontent.com/someAccount/data.geojson")

I tried to add extra line to csv but in vain. There was also some other issue:

Error: nanodbc/nanodbc.cpp:950: IM002: [Microsoft][ODBC Driver Manager] Data >source name not found and no default driver specified

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.

I need to somehow upload app on shinyapps and those errors prevent me from doing it, don't know how to solve it. I also checked this issue: Unable to deploy shiny app with shinyapps.io and this In read.table(): incomplete final line found by readTableHeader

Is it something wrong with csv or geojson maybe?

mustafa00
  • 205
  • 6

0 Answers0