[英]Failed to lock directory when installing R package using devtools::install_github()
When installing an R package from GitHub using devtools::install_github()
, the following error was returned:使用devtools::install_github()
从 GitHub 安装 R 包时,返回以下错误:
ERROR: failed to lock directory ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library’ for modifying
Try removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/00LOCK-jrosen48-prcr-4f6f783’
When I navigate using Terminal on Macintosh OS 10.12
to that location, it is not available ( R.framework did not appear in the "Frameworks" directory).当我在 Macintosh OS 10.12
上使用终端导航到该位置时,它不可用(R.framework 没有出现在“Frameworks”目录中)。
How can I try removing '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/00LOCK-jrosen48-prcr-4f6f783'
?如何尝试删除'/Library/Frameworks/R.framework/Versions/3.3/Resources/library/00LOCK-jrosen48-prcr-4f6f783'
? Or, is there another workaround for this?或者,还有其他解决方法吗?
Try removing /Library/Frameworks/R.framework/Versions/3.3/Resources/library/00LOCK-jrosen48-prcr-4f6f783
尝试删除/Library/Frameworks/R.framework/Versions/3.3/Resources/library/00LOCK-jrosen48-prcr-4f6f783
Remove using rm
command from your command line
:删除使用rm
命令从您的command line
:
:$ rm -rf /Library/Frameworks/R.framework/Versions/3.3/Resources/library/00LOCK-jrosen48-prcr-4f6f783
Then install the package again.然后再次安装该软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.