闪亮权限:文件中的警告(文件,ifelse(附加,“ a”;" quot; quot”)):无法打开文件' ../ file_name.js':

发布于 2025-02-13 16:57:48 字数 542 浏览 2 评论 0原文

我正在尝试在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文