r - R install_github:错误:无法安装“未知包”
问题描述
我是 GitHub 的新手,我很困惑。我不能install_github
去上班。
我按照此处的有用说明设置了我的帐户:https ://kbroman.org/github_tutorial/pages/init.html 。我有一个帐户和一个存储库,其中存储了一些 R ggplot 设置: https ://github.com/tgraybam/TorontoPlot 。
好的。现在我想将我的 repo 中的设置文件安装到 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
我可以使用install_github
不同的存储库(这很好用:
install_github("kbroman/broman")
。)
我可以认证。ssh -T git@github.com
返回
Hi tgraybam! You've successfully authenticated, but GitHub does not provide shell access.
就像它应该做的那样。
我在 Google 上搜索了一场风暴并尝试了我能想到的一切(多次订单)。
我正在使用 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
有人可以帮忙吗?非常感谢。
解决方案
我遇到了同样的问题,然后我使用remotes::install_github()
并Sys.setenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS" = "true")
从 R 会话中设置。
参考:
推荐阅读
- ios - Xamarin Forms 打开 Telegram 应用程序。有没有更好的解决方案
- python - 具有一个日期和三个不同值的数据框:我怎样才能得到中间的那个?
- .net - WebView2 的无头单元测试
- amazon-web-services - 如何在 AWS CDK 部署期间运行非 CDK 代码
- javascript - 当我没有将光标放在文本上时,如何使文本继续动画
- javascript - 使用javascript从包装到webview中的html文件发送XHR请求
- powerbi - LinkedIn PBI 自定义数据连接器 - 计划报告刷新时出错
- javascript - Slick slider ().slick 不是 Wordpress PHP 的函数
- emacs - emacs:我可以定义一个别名以在 minibuffer 中使用 find-file
- angular - 如何将 Angular 中 ReactiveForms 上的文件上传到 Nest.js 服务