Skip to content

rhino::pkg_install install private github package? #506

Closed Answered by dereckmezquita
dereckmezquita asked this question in Q&A
Discussion options

You must be logged in to vote

rhino::pkg_install uses renv::install under the hood which supports PAT tokens via .Renviron.

https://rstudio.github.io/renv/articles/package-install.html#authentication

.Renviron:

GITHUB_PAT="you_key_here"

To create token go to GitHub > settings > developer settings > personal access tokens.

Then simply use:

rhino::pkg_install("you_username/your_repo_name")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dereckmezquita
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant