0

我的应用程序在本地运行良好。我使用golem框架来编写这个闪亮的应用程序。但是,当我在 shinyapps.io 上部署应用程序时,会出现以下错误:

警告消息:检测语言环境时出错:read.table 中的错误(file = file,header = header,sep = sep,quote = quote,:readTableHeader 在“raw”上找到不完整的最后一行(使用默认值:en_US)

在我的应用程序中,我有 2 个地方可以读取 csv / geojson,它看起来像:

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")

我试图向 csv 添加额外的行但徒劳无功。还有一些其他问题:

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.

我需要以某种方式在 shinyapps 上上传应用程序,而这些错误阻止我这样做,不知道如何解决它。我还检查了这个问题:Unable to deploy shiny app with shinyapps.io and this In read.table(): incomplete final line found by readTableHeader

可能是 csv 或 geojson 有问题吗?

4

0 回答 0