R安装程序包:ERROR: failed to lock directory ‘/usr/lib64/R/library’ for modifying

 

ERROR: failed to lock directory ‘/usr/lib64/R/library’ for modifying
Try removing ‘/usr/lib64/R/library/00LOCK-stringi’

 

出现错误提示:

ERROR: failed to lock directory

原因:网络不好,以前安装的未成功,残留文件

解决:删除R目录下 lib64/R/library中的000lock文件夹

或者,安装时候用

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

 

REF

http://blog.sciencenet.cn/home.php?mod=space&uid=707141&do=blog&id=1205576

上一篇:Dockerfile


下一篇:RPM故障:Failed to initialize NSS library