我正在嘗試從 github ( https://github.com/KTMD-plant/gaRdenbox )安裝 gaRdenbox 包
但是當我跑
install_github("KTMD-plant/gaRdenbox")
它回傳
錯誤:無法從 GitHub 安裝“未知包”:HTTP 錯誤 404。未找到您是否正確拼寫了存盤庫所有者 (
KTMD-plant) 和存盤庫名稱 (gaRdenbox)?- 如果拼寫正確,請檢查您是否具有訪問 repo 所需的權限。
據我所知,repro 是公開的。你知道這里有什么問題嗎?
uj5u.com熱心網友回復:
這是包gaRdenbox中的一個錯誤,因為檔案DESCRIPTION“丟失”,因為只有一個檔案Description.
您可以通過 fork 包并通過重命名來更改檔案來測驗它 - 我在我的 repo 中的這個 fork 中所做的。現在我們可以按預期安裝:
edd@rob:/tmp$ installGithub.r eddelbuettel/gaRdenbox
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo eddelbuettel/gaRdenbox@HEAD
? checking for file ‘/tmp/remotes12841a2d0cc36c/eddelbuettel-gaRdenbox-fd41a57/DESCRIPTION’ ...
─ preparing ‘gaRdenbox’:
? checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘gaRdenbox_0.0.1.0.tar.gz’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘gaRdenbox’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (gaRdenbox)
edd@rob:/tmp$
(我的包中命令列installGitHub.r的簡單包裝器在哪里littler)。您可以忽略該PAT訊息;由于其他原因,我的環境中有一個。
我已經在上游回購中提交了PR。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/342989.html
下一篇:忽略熱圖中著色的特定值
