小编tgr*_*bam的帖子

R install_github:错误:无法安装“未知包”

我是 GitHub 的新手,我很困惑。我无法去install_github上班。

我按照此处的有用说明设置了我的帐户:https ://kbroman.org/github_tutorial/pages/init.html 。我有一个帐户和一个存储库,用于存储一些 R ggplot 设置: https: //github.com/tgraybam/TorontoPlot

好的。现在我想将设置文件从我的存储库安装到 R 项目中,因此:devtools::install_github('tgraybam/TorontoPlot').

但执行命令会返回错误:

Error: Failed to install 'unknown package' from GitHub: HTTP error
404. Not Found Did you spell the repo owner (`tgraybam`) and repo name (`TorontoPlot`) correctly? - If spelling is correct, check that you
have the required permissions to access the repo.
Run Code Online (Sandbox Code Playgroud)

我已经devtools安装了。我没有拼写错误。这是我自己的仓库。我可以很好地克隆它:

git clone https://github.com/tgraybam/TorontoPlot.git

我可以install_github与不同的存储库一起使用(这很好用: install_github("kbroman/broman")。)

我可以验证。ssh -T git@github.com回报

Hi tgraybam! …
Run Code Online (Sandbox Code Playgroud)

git r github

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

git ×1

github ×1

r ×1