【发布时间】:2017-05-28 03:25:58
【问题描述】:
我从 github 分叉了一个包,做了一些更改。我正在尝试安装已使用 install_github() 进行更改的软件包版本,但收到一条错误消息。有什么建议吗?
分叉版本:https://github.com/embruna/refnet
分支上的编辑版本:https://github.com/embruna/refnet/tree/proposed-updates
我可以安装分叉版本:
install_github("embruna/refnet", subdir="pkg")
我尝试在分支上安装以下版本:
install_github("embruna/refnet@proposed-updates", subdir="pkg")
然后得到这个错误:
** help
*** installing help indices
** building package indices
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 1 did not have 6 elements
ERROR: installing package indices failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/refnet’
Error: Command failed (1)
感谢您的任何建议。
编辑:有两个问题:1)我使用的 install_github 语法不正确,2)“pkg”中有一个文件夹,即使在更正语法后仍然抛出错误。详情见下文。
【问题讨论】:
-
在
install_github调用中使用ref似乎可以解决这个问题。像这样:install_github("repourl",ref="branch").
标签: github installation devtools