我正在尝试让一个应用程序在shinyapps.io上运行。第一步是加载一个用于dropbox访问的rds文件。该应用程序应该在服务器上下载dropbox的一个文件夹。
我想在应用程序的“静态”目录中创建一个目录。
我试过了
dir.create (static/...)
dir.create (./static/...)两者在本地都工作得很好,但dir.create ()似乎不能在shinyapps服务器上工作。https://colomb.shinyapps.io/resultsgallery_software/ https://github.com/smartfigures-dar/SmartFig_Rbased_prototype/tree/dropbox_integration
请注意,它似乎在第一个实例上起作用,然后不再起作用:
本地:
for (j in folders$path_display){
print(j)
foldercreated <-dir.create(paste0("./static",j))
}
[1] "/SFB-resultgallery"
[1] "/SFB-resultgallery/Figures"
[1] "/sfb-resultgallery/Figures/atg6-9_KD_in_brain"
[1] "/sfb-resultgallery/Figures/keep_it_short,_no_more_than1"
[1] "/sfb-resultgallery/Figures/2e"
[1] "/sfb-resultgallery/Figures/keep_it_short,_no_more_than"eshinyapps.io日志消息:
2019-07-05T09:42:45.679221+00:00 shinyapps[1012452]: [1] "/SFB-resultgallery"
2019-07-05T09:42:45.679636+00:00 shinyapps[1012452]: [1] "/SFB-resultgallery/Figures"
2019-07-05T09:42:45.679740+00:00 shinyapps[1012452]: [1] "/sfb-resultgallery/Figures/atg6-9_KD_in_brain"
2019-07-05T09:42:45.679936+00:00 shinyapps[1012452]: Warnung in dir.create(paste0("./static", j))
2019-07-05T09:42:45.679938+00:00 shinyapps[1012452]: kann Verzeichnis './static/sfb-resultgallery/Figures/atg6-9_KD_in_brain' nicht erzeugen. Grund 'No such file or directory'发布于 2019-07-06 05:34:48
简而言之:永远不要大写文件夹名称。
尽管问题很小: shinyapps.io和windows处理大写字母的方式是不同的:东西被保存在" Figures/“中,应用程序试图访问"figures/",更不用说dropbox也会搞乱它(file in figures/在figures/中看到...)
我想知道这是不是在医生的某个地方...
(在找到这个问题几个小时后,我仍然在努力解决它……)
https://stackoverflow.com/questions/56901021
复制相似问题