无法使用R 3.6.1的devtools :: install_github()

问题描述 投票:1回答:1

我最近从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上安装,但似乎没有任何作用。有什么建议吗?

提前感谢!

EDIT / UPDATE:由于某种神秘的原因,错误显然可以解决。感谢大家的帮助!

r devtools
1个回答
0
投票

您能否详细说明它是如何“自我解决”的?我遇到的是完全相同的问题,并且我尝试了来自各种Internet来源的数十种潜在解决方案……无济于事。在过去的几天里,我一直在不停地重启R和我的计算机,希望我也能得到那个神秘的自动解决方案。谢谢!

© www.soinside.com 2019 - 2024. All rights reserved.