我從GitHub叉包已經做了一些改動。我試圖安裝的軟件包的版本,而我已經和install_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/[email protected]", 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」這是即使校正語法之後發出一個錯誤的文件夾。詳情請參閱下文。
謝謝本 - 這兩個人對我來說都是失敗的,並且在原始問題中反駁錯誤。同樣使用devtools 1.12.0 –
下面這些代碼適用於我:'install_github(「embruna/refnet/pkg」,ref =「proposed-updates」)'但是我發現很多來自GitHub API的服務器錯誤(500)最近,這可能會導致你的問題。 –
我認爲這裏有一個層次結構。 ''embruna/refnet/pkg''''''''''''''''''''' ',所以會'子目錄= ...,REF = ...''但 「embruna/refnet @擬議的更新」','子目錄= ...'出故障 –