如何阅读闪亮的在线应用使用的csv?

时间:2018-11-22 10:51:50

标签: csv shiny dependencies read.table

我正在Shiny上开发一个简单的应用程序。它必须读取我PC上的CSV。

Coeff<-read.table("coeffoptimeco.csv",sep=";",header=T)

通过在计算机上使用它,我的应用程序可以完美运行。我试图在线发布它,但是当闪亮的需要来自“ coeffoptimeco”的数据时,应用程序会显示“错误:发生了错误。请检查您的日志或与应用程序作者联系以进行澄清”。

R Console说,我认为它无法像在应用发布期间那样执行要求读取CSV的行:

Warning messages:
1: In fileDependencies.R(tempfile) :
Failed to parse 
C:\Users\JJOURD~1\AppData\Local\Temp\RtmpcxPENI\file3af874ee71b8 ; 
dependencies in this file will not be discovered.
2: 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) 

关于如何通过发布我的应用程序来保留该表中数据的任何想法?

非常感谢您的帮助!

0 个答案:

没有答案