gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 22:19:38 25 4
gpt4 key购买 nike

使用 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’

当我在 Macintosh OS 10.12 上使用终端导航到该位置时,它不可用(R.framework 没有出现在“Frameworks”目录中)。

我如何尝试删除 '/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

从你的命令行中使用rm命令删除:

:$ rm -rf /Library/Frameworks/R.framework/Versions/3.3/Resources/library/00LOCK-jrosen48-prcr-4f6f783

然后再次安装包。

关于r - 使用 devtools::install_github() 安装 R 包时无法锁定目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41143608/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com