remotes icon indicating copy to clipboard operation
remotes copied to clipboard

Add support for deploy keys in install_github

Open rvernica opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

To use install_github with a private repository a Personal Access Token (PAT) is required. This is not ideal for teams as PATs are linked to an individual.

Describe the solution you'd like

Add support for deploy keys in install_github. A deploy key is linked to a repository and not an individual.

Describe alternatives you've considered

An alternative would be to use the deploy key and checkout the private repository. Then install the R package from the local directory.

rvernica avatar Jul 22 '22 17:07 rvernica

devtools::install_github() is actually remotes::install_github(), so I'm transferring this issue.

jennybc avatar Aug 09 '22 23:08 jennybc

Can you use install_git() instead? That should work with ssh keys I believe.

install_github() uses the GitHub API, and I am not sure if the API works with ssh keys.

gaborcsardi avatar Aug 10 '22 09:08 gaborcsardi