问题
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