使用 renv 在 R Shiny 应用程序中安装依赖项

问题描述

我正在尝试使用 s2i 构建过程在 OpenShift Online 中创建一个新的 R Shiny 应用程序。我在构建过程中使用 renv 包安装依赖项。所以在我的汇编文件中,我有以下行

Rscript -e 'renv::restore(project = "/srv/shiny-server/app-folder",clean = T)'  

但是,在构建过程中,我得到以下输出

You do not have permissions to read / write into the requested library:

/usr/local/lib/R/site-library

renv may be unable to restore packages.

之后,从源下载并安装软件包。知道为什么我会得到这个吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)