从github组织拥有的私人仓库中安装R包 [英] install R package from private repo owned by github organisation

查看:59
本文介绍了从github组织拥有的私人仓库中安装R包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定如何安装由组织拥有的私人仓库中托管的R软件包.以前,该存储库将由我本人拥有,作为个人用户,我可以使用个人访问令牌和devtools :: install_github的'auth_token'参数.据我所知,这对于组织(github团队)是不可能的.还有其他可行的解决方案吗?

I am unsure how to install an R package which I have hosted on a private repo owned by an organisation. Previously the repo would have been owned by myself and as an individual user I could use a Personal Access Token and the 'auth_token' argument of devtools::install_github. As far as I am aware this isn't possible for an organisation (github teams). Are there any other solutions that could work?

谢谢

推荐答案

您可以尝试改用install_git.

要确保已正确设置凭据,请尝试在外壳中仅使用git进行存储库克隆尝试:

To make sure you have the credentials set-up properly, try a repository cloning attempt with git alone in the shell:

$ git clone ssh://git@bitbucket.org/username/repository.git  

然后在R中尝试使用以下命令安装软件包:

Then in R try installing the package with:

R> devtools::install_git('ssh://git@bitbucket.org/username/repository.git')

这篇关于从github组织拥有的私人仓库中安装R包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆