#r shinyapps.io警告:curl :: curl_fetch_disk出错:无法打开文件

时间:2017-01-18 14:54:29

标签: r

我正在尝试在shinyapps.io上部署我的应用程序,但每次我在我的控制台中尝试时都显示“应用程序已成功部署到https:”...并且在应用程序本身中“由服务器断开连接”。 这是我在帐户中找到的

 No encoding supplied: defaulting to UTF-8.
2017-01-18T14:32:24.419575+00:00 shinyapps[151746]:     10: tryCatchOne
2017-01-18T14:32:24.419578+00:00 shinyapps[151746]:      5: eval
2017-01-18T14:32:24.416074+00:00 shinyapps[151746]: Warning: Error in curl::curl_fetch_disk: Failed to open file /home/shiny/applicazionemanager/registrazione1.csv.
2017-01-18T14:32:24.419574+00:00 shinyapps[151746]:     12: fn
2017-01-18T14:32:24.419925+00:00 shinyapps[151746]:   Failed to open file /home/shiny/applicazionemanager/registrazione1.csv.
2017-01-18T14:32:24.419569+00:00 shinyapps[151746]: Stack trace (innermost first):
2017-01-18T14:32:24.419573+00:00 shinyapps[151746]:     52: drop_get
2017-01-18T14:32:24.419579+00:00 shinyapps[151746]:      3: eval
2017-01-18T14:32:24.419570+00:00 shinyapps[151746]:     57: curl::curl_fetch_disk
2017-01-18T14:32:24.419575+00:00 shinyapps[151746]:     11: doTryCatch
2017-01-18T14:32:24.419571+00:00 shinyapps[151746]:     56: request_fetch.write_disk
2017-01-18T14:32:24.419577+00:00 shinyapps[151746]:      6: eval
2017-01-18T14:32:24.419578+00:00 shinyapps[151746]:      4: eval
2017-01-18T14:32:24.419572+00:00 shinyapps[151746]:     55: request_fetch
2017-01-18T14:32:24.419924+00:00 shinyapps[151746]: Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
2017-01-18T14:32:24.419572+00:00 shinyapps[151746]:     54: request_perform
2017-01-18T14:32:24.419577+00:00 shinyapps[151746]:      8: tryCatch
2017-01-18T14:32:24.419579+00:00 shinyapps[151746]:      1: local
2017-01-18T14:32:24.419573+00:00 shinyapps[151746]:     53: GET
2017-01-18T14:32:24.419577+00:00 shinyapps[151746]:      7: connect$retry
2017-01-18T14:32:24.419574+00:00 shinyapps[151746]:     13: runApp
2017-01-18T14:32:24.419579+00:00 shinyapps[151746]:      2: eval.parent
2017-01-18T14:32:24.419576+00:00 shinyapps[151746]:      9: tryCatchList

实际上,还有其他问题:

2017-01-18T16:17:29.641801+00:00 shinyapps[151746]: Attaching package: ‘shinyjs’
2017-01-18T16:17:29.641802+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.642826+00:00 shinyapps[151746]: The following object is masked from ‘package:shiny’:
2017-01-18T16:17:29.642829+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.642829+00:00 shinyapps[151746]:     runExample
2017-01-18T16:17:29.642830+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.643956+00:00 shinyapps[151746]: The following objects are masked from ‘package:methods’:
2017-01-18T16:17:29.643958+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.643959+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.665646+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.665648+00:00 shinyapps[151746]: Attaching package: ‘shinydashboard’
2017-01-18T16:17:29.665648+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.666164+00:00 shinyapps[151746]: The following object is masked from ‘package:graphics’:
2017-01-18T16:17:29.666165+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.666166+00:00 shinyapps[151746]:     box
2017-01-18T16:17:29.666166+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.869759+00:00 shinyapps[151746]: Attaching package: ‘dplyr’
2017-01-18T16:17:29.643959+00:00 shinyapps[151746]:     removeClass, show
2017-01-18T16:17:29.870412+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.870414+00:00 shinyapps[151746]:     filter, lag
2017-01-18T16:17:29.870415+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.871614+00:00 shinyapps[151746]: The following objects are masked from ‘package:base’:
2017-01-18T16:17:29.871618+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.871619+00:00 shinyapps[151746]:     intersect, setdiff, setequal, union
2017-01-18T16:17:29.887706+00:00 shinyapps[151746]: Package 'qcc', version 2.6
2017-01-18T16:17:29.869755+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.870408+00:00 shinyapps[151746]: The following objects are masked from ‘package:stats’:
2017-01-18T16:17:29.869760+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.871620+00:00 shinyapps[151746]: 
2017-01-18T16:17:29.887966+00:00 shinyapps[151746]: Type 'citation("qcc")' for citing this R package in publications.
2017-01-18T16:17:30.124271+00:00 shinyapps[151746]: 
2017-01-18T16:17:30.124275+00:00 shinyapps[151746]: Attaching package: ‘rsconnect’
2017-01-18T16:17:30.124276+00:00 shinyapps[151746]: 
2017-01-18T16:17:30.124649+00:00 shinyapps[151746]: The following object is masked from ‘package:shiny’:
2017-01-18T16:17:30.124650+00:00 shinyapps[151746]: 
2017-01-18T16:17:30.124651+00:00 shinyapps[151746]:     serverInfo
2017-01-18T16:17:30.124651+00:00 shinyapps[151746]: 

1 个答案:

答案 0 :(得分:1)

看起来您已经为csv数据使用了绝对文件路径而不是相对文件路径。

也许this link会有帮助吗?