今天升级rlang的时候报了错:
ERROR: failed to lock directory 'C:/Users/MSI-NB/Documents/R/win-library/4.0' for modifying
Try removing 'C:/Users/MSI-NB/Documents/R/win-library/4.0/00LOCK-rlang'
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
这时如果查看对应安装包的文件夹(例子中是win-library/4.0),会发现多了一个叫做“00LOCK-rlang”(或者直接叫“00LOCK”)的文件夹。
先放解决方案:
方案1:install.packages() 加上INSTALL_opts = '--no-lock'&#