【发布时间】:2016-10-01 18:33:21
【问题描述】:
我使用 R 开发了一个解决方案,并希望将其传输到没有 Internet 连接的生产服务器 (CentOS 7) 来安装软件包。为了方便安装包,我使用 packrat 将我在 R 脚本中使用的包捆绑到项目中。
使用 packrat::bundle(),我创建了项目的 tar 文件并将文件移动到服务器并解压缩 zip 文件。
根据 Blogger 中的post,一旦我打开项目,When R is started from that directory, Packrat will do its magic and make sure the software environment is the same as on the source machine.
但是,当我在 Server 中打开项目(使用 R-Studio Server 0.99)时,没有任何反应,并且会引发未知包的错误。
当手动执行“packarat/init.R”文件时会抛出以下错误
ensurePackageSymlink(源,目标)中的错误:
目标'/home/R_Projects/prjName/packrat/lib-R/base'已经存在并且不是符号链接
【问题讨论】:
标签: r centos7 rstudio-server