我最近从R 3.5.3更新到R 3.6.1,然后重新运行了所有脚本。不幸的是,我似乎无法从GitHub存储库安装软件包。我的GH回购中有一个稍微修改过的软件包,对于某些脚本来说这是必需的。使用R 3.5.3时,一切进展顺利,但是使用最新版本时,出现以下错误
Downloading GitHub repo ceschi/urcabis@master
v checking for file 'C:\Users\...\AppData\Local\Temp\RtmpCChTCy\remotes27985bc713f5\ceschi-urcabis-aeb1bdc/DESCRIPTION' (439ms)
- preparing 'urca': (910ms)
v checking DESCRIPTION meta-information ...
- cleaning src
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'urca_1.3-0.tar.gz'
Installing package into ‘C:/Users/.../Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
ERROR: failed to lock directory 'C:/Users/.../Documents/R/win-library/3.6' for modifying
Try removing 'C:/Users/.../Documents/R/win-library/3.6/00LOCK-urca'
Error: Failed to install 'urca' from GitHub:
(converted from warning) installation of package ‘C:/Users/EB74A~1.FRA/AppData/Local/Temp/RtmpCChTCy/file27989b74233/urca_1.3-0.tar.gz’ had non-zero exit status
我尝试删除所有锁定的目录,并安装在旧版本的R上,但似乎没有任何效果。有什么建议吗?
谢谢!