How to Install R Package from Private Repo Using Devtools Install_Github

How to install R package from private repo using devtools install_github?

Have you tried setting a personal access token (PAT) and passing it along as the value of the auth_token argument of install_github()?

See ?install_github way down at the bottom (Package devtools version 1.5.0.99).

Installing non-public packages from Gitlab using devtools::install_git

You could try a combination of the devtools and getPass packages.

https://github.com/wrathematics/getPass

devtools::install_git(
"https://gitlab.com/foo/bar.git",
credentials = git2r::cred_user_pass("uname", getPass::getPass())
)

Where uname is your Gitlab user name.



Related Topics



Leave a reply



Submit