rstudo server 出现 ERROR: failed to create lock directory

    xiaoxiao2022-09-22  70

    报错

    命令行安装拓展包的时候出现 ERROR: failed to create lock directory xxx 信息,例如

    install.packages("Rcpp", dependencies=TRUE)

    报错信息有一行显示:

    ERROR: failed to create lock directory ‘/home/me/src/Rlibs/00LOCK-Rcpp’

    解决方法

    在NFS文件系统上,有时您不得不关闭哪些内容。 在R中,您可以使用以下命令在命令中执行此操作:

    install.packages("Rcpp", dependencies=TRUE, INSTALL_opts = c('--no-lock'))

    或者在命令行中使用 --no-lock 参数,例如,

    R CMD INSTALL --no-lock <pkg>
    最新回复(0)