从 public github repro 安装 R 包时出现错误 404
Error 404 installing R package from public github repro
我正在尝试从 github (https://github.com/KTMD-plant/gaRdenbox)
安装 gaRdenbox 包
但是当我运行
install_github("KTMD-plant/gaRdenbox")
它returns
Error: Failed to install 'unknown package' from GitHub:
HTTP error 404.
Not Found
Did you spell the repo owner (KTMD-plant
) and repo name (gaRdenbox
) correctly?
-If spelling is correct, check that you have the required permissions to access the repo.
据我所知,repro 是 public。你知道这里的问题是什么吗?
这是包 gaRdenbox
中的错误,因为文件 DESCRIPTION
是 'missing',因为只有文件 Description
.
您可以通过分叉包并通过重命名来更改文件来测试它 -- 我就是这样做的 in this fork in my repo。现在我们可以按预期安装了:
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
是一个 simple wrapper for the command-line from my littler
包)。您可以忽略 PAT
消息;由于其他原因,我的环境中有一个。
我已经在上游仓库提交了 PR。
我正在尝试从 github (https://github.com/KTMD-plant/gaRdenbox)
安装 gaRdenbox 包但是当我运行
install_github("KTMD-plant/gaRdenbox")
它returns
Error: Failed to install 'unknown package' from GitHub: HTTP error 404. Not Found Did you spell the repo owner (
KTMD-plant
) and repo name (gaRdenbox
) correctly? -If spelling is correct, check that you have the required permissions to access the repo.
据我所知,repro 是 public。你知道这里的问题是什么吗?
这是包 gaRdenbox
中的错误,因为文件 DESCRIPTION
是 'missing',因为只有文件 Description
.
您可以通过分叉包并通过重命名来更改文件来测试它 -- 我就是这样做的 in this fork in my repo。现在我们可以按预期安装了:
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
是一个 simple wrapper for the command-line from my littler
包)。您可以忽略 PAT
消息;由于其他原因,我的环境中有一个。
我已经在上游仓库提交了 PR。