如何使用devtools install_github从私人回购安装R包? [英] How to install R package from private repo using devtools install_github?
问题描述
我试图从我的github repo安装一个示例包:
https://github.com/jpmarindiaz/samplepkg
我可以在通过R解释器使用以下任何命令公开repo时安装它:
install_github(jpmarindiaz / rdali)
install_github(rdali,user =jpmarindiaz )
install_github(jpmarindiaz / rdali,auth_user =jpmarindiaz)
但是当git存储库是私有的,我得到一个错误:
从jpmarindiaz安装github repo samplepkg / master
从
下载samplepkg.zip https://github.com/jpmarindiaz/samplepkg/archive/master.zip
错误:客户端错误:(406)不可接受
我还没有弄清楚当回购是私人,任何提示?
您是否尝试过设置一个个人访问令牌(PAT)并将它作为 install_github()
的 auth_token
参数的值传递。
请在底部查看 I am trying to install a sample package from my github repo:
I can install it when the repo is public using any of the following commands through the R interpreter: But when the git repository is private I get an Error: I haven't figured out how the authentication works when the repo is private, any hints? Have you tried setting a personal access token (PAT) and passing it along as the value of the See 这篇关于如何使用devtools install_github从私人回购安装R包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!?install_github
方式(Package devtools $ c $版本1.5.0.99)。
https://github.com/jpmarindiaz/samplepkg
install_github("jpmarindiaz/rdali")
install_github("rdali",user="jpmarindiaz")
install_github("jpmarindiaz/rdali",auth_user="jpmarindiaz")
Installing github repo samplepkg/master from jpmarindiaz
Downloading samplepkg.zip from
https://github.com/jpmarindiaz/samplepkg/archive/master.zip
Error: client error: (406) Not Acceptable
auth_token
argument of install_github()
? ?install_github
way down at the bottom (Package devtools
version 1.5.0.99).