今天想要安装tidyverse,但是遇到这个问题
install.packages("tidyverse", dependencies = TRUE )
Warning in install.packages : installation of package ‘blob’ had non-zero exit status
看来是这个blob包有问题,
install.packages("blob")
得到了相同的报错
ERROR: failed to lock directory ‘/home/me/conda/lib/R/library’ for modifying Try removing ‘/home/me/conda/lib/R/library/00LOCK-blob’ Warning in install.packages : installation of package ‘blob’ had non-zero exit statu
搜寻网上资料
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(删除这个lock的文件):
意思就是上一次安装被异常打断了,为了解决这个问题,必须要手动删除这个locked文件。
unlink("/home/me/conda/lib/R/library/00LOCK-blob", recursive = TRUE)
install.packages("tidyverse", dependencies = TRUE )
安装成功!