美文网首页
R包安装

R包安装

作者: WooWoods | 来源:发表于2018-06-13 11:07 被阅读10次

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

The best way to avoid this is to use the '--no-lock' argument on the command line, e.g.,

R CMD INSTALL --no-lock <pkg>

On NFS file systems it is sometimes not obvious what things you have to close. From within R, you can do this from within your command using:

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

down vote

This happens when your last package installation has interrupted abnormally. to fix this you should remove the locked file. For example Execute this command in R console:

unlink("/home/me/src/Rlibs/00LOCK-Rcpp", recursive = TRUE)

相关文章

网友评论

      本文标题:R包安装

      本文链接:https://www.haomeiwen.com/subject/wyqjeftx.html