简体   繁体   English

使用 devtools::install_github() 安装 R 包时无法锁定目录

[英]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.

相关问题 通过devtools install_github安装r包的问题 - Problems installing r package via devtools install_github 如何使用 devtools install_github 从私人仓库安装 R package? - How to install R package from private repo using devtools install_github? R install_github:错误:无法安装“未知包” - R install_github: Error: Failed to install 'unknown package' devtools::install_github 错误:无法从 GitHub 安装“未知包” - devtools::install_github Error: Failed to install 'unknown package' from GitHub data.table&devtools:install_github错误 - 函数在本地工作,但在从github安装包后没有 - data.table & devtools: install_github error - function works locally but not after installing package from github 使用 install_github 安装 SparkR 包时出错 - Error while installing SparkR package using install_github 使用`devtools :: install_github()`同时安装R包的git多个分支 - concurrent install of git multiple branches of an R package with `devtools::install_github()` R devtools :: install_github / install_bitbucket-未构建时未安装小插图 - R devtools::install_github / install_bitbucket - vignettes not installed when not building devtools install_github失败 - devtools install_github fails 我正在尝试在 devtools package 中使用 install_github 但失败了 - I am trying to use install_github in devtools package but failing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM