错误检测区域设置:错误 in read.table(file = file, header = header.. 如何解决这个问题?

我的应用在本地运行良好。我使用 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 和这个 In read.table(): incomplete final line found by readTableHeader

可能是 csv 或 geojson 有问题吗?

iCMS 回答:错误检测区域设置:错误 in read.table(file = file, header = header.. 如何解决这个问题?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/428446.html

大家都在问