【r<-安装】安装包遇到failed to lock directory的情况

解决方案:

R控制台安装

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

R命令行安装

R CMD INSTALL --no-lock <pkg>

参考:

https://stackoverflow.com/questions/14382209/r-install-packages-returns-failed-to-create-lock-directory

点赞