installation of package ‘blob’ had non-zero exit status

今天想要安装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

搜寻网上资料

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

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)

installation of package ‘blob’ had non-zero exit status_第1张图片

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

安装成功!

 

 

你可能感兴趣的:(报错)