我是GitHub的新手,我被难住了。我不能让install_github
工作。
我按照这里的有用说明设置了我的帐户:https://kbroman.org/github_tutorial/pages/init.html。我有一个帐户和一个存储库,我在其中存储了一些R图设置: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.
我已经安装了devtools
。我没有拼错任何东西。这是我自己的回购。我可以很好地克隆它:
git clone https://github.com/tgraybam/TorontoPlot.git
我可以对不同的repos使用install_github
(这很好用:install_github("kbroman/broman")
)。
我可以验证。ssh -T git@github.com
返回
Hi tgraybam! You've successfully authenticated, but GitHub does not provide shell access.
就像它应该做的那样。
我用谷歌搜索了一场风暴,并尝试了我能想到的所有方法(在多个订单中多次尝试)。
我用的是Mac电脑。以下是我的系统和R详细信息:
platform x86_64-apple-darwin15.6.0
arch x86_64
os darwin15.6.0
system x86_64, darwin15.6.0
status
major 3
minor 5.2
year 2018
month 12
day 20
svn rev 75870
language R
version.string R version 3.5.2 (2018-12-20)
nickname Eggshell Igloo
外面有人能帮上忙吗?非常感谢。
发布于 2020-08-27 10:46:50
我遇到了同样的问题,然后我使用remotes::install_github()
并从R会话中设置了Sys.setenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS" = "true")
。
参考:
https://stackoverflow.com/questions/59332234
复制相似问题