闪亮权限:文件中的警告(文件,ifelse(附加,“ a”;" quot; quot”)):无法打开文件' ../ file_name.js':
我正在尝试在Shiny Server上的闪亮应用程序中使用Write()。我相信,包含该应用程序的文件夹具有正确的权限:
drwxr-xr-x 4 shiny shiny 4096
即,我尝试同时运行两者:
sudo chown -r shiny/srv/shiny -server/app_name
sudo chown -r闪亮:闪亮/srv/shiny -server/app_name
但是,在将应用程序加载到浏览器中时,call with write()失败。日志显示:
在文件中警告(文件,ifelse(append,“ a”,“ w”)):无法打开文件 '/usr/local/lib/r/site-library/my_package/www/js/file_name.js': 许可拒绝
该命令在应用程序上下文之外工作。
鉴于我给了应用程序目录提供了正确的权限,这里可能出了什么问题?
I am trying to use write() within a Shiny app on Shiny server. The folder containing the app has the right permissions, I believe:
drwxr-xr-x 4 shiny shiny 4096
i.e., before, I tried running both:
sudo chown -R shiny /srv/shiny-server/app_name
sudo chown -R shiny:shiny /srv/shiny-server/app_name
However, on loading the app in the browser, calling write() fails. The log shows:
Warning in file(file, ifelse(append, "a", "w")) : cannot open file
'/usr/local/lib/R/site-library/my_package/www/js/file_name.js':
Permission denied
The command works outside the context of the app, in a normal R session.
What could be going wrong here, given that I gave the app directory the correct permissions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论