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
Working with Dictionaries/Lists to Get List of Keys
Efficient Alternatives to Merge for Larger Data.Frames R
How to Include Interactive Input in Script to Be Run from the Command Line
R List Files with Multiple Conditions
Suppress Messages Displayed by "Print" Instead of "Message" or "Warning" in R
What's the Real Meaning About 'Everything That Exists Is an Object' in R
Applying R Script Prepared for Single File to Multiple Files in the Directory
Ggmap with Geom_Map Superimposed
How to Create Binned Factor Variables from a Continuous Variable, with Custom Breaks
How to Make My Axis Ticks Face Inwards in Ggplot2
Ggplot: How to Increase Spacing Between Faceted Plots
Best Practices for Storing and Using Data Frames Too Large for Memory
Reading Hdf Files into R and Converting Them to Geotiff Rasters
Multiply Many Columns by a Specific Other Column in R with Data.Table
How Make 2 Column Layout in R Markdown When Rendering PDF
Using Legend with Stat_Function in Ggplot2
Caching the Mean of a Vector in R
How to Expand an Ellipsis (...) Argument Without Evaluating It in R