install R package from private repo owned by github organisation

喜夏-厌秋 提交于 2019-12-23 01:41:59

问题


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?

Thanks


回答1:


You can try to use install_git instead.

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  

Then in R try installing the package with:

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


来源:https://stackoverflow.com/questions/53064119/install-r-package-from-private-repo-owned-by-github-organisation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!