sam
sam

Reputation: 1279

how to install R packages from artifactory remote repo and pass credentials

I'm trying to to install R packages from artifactory and also i need to authenticate but im not sure how i can pass credentials to the install.packages in R :

the below is what i tried but it doesnt work, however when i tried to use curl to query for the same file it works :

install.packages('broom',repos="http://user:pass@artifactory-url:port/artifactory/cran/",method=curl,verbose="true")

output :

Warning: unable to access index for repository http://user:pass@artifactory-url:port/artifactory/cran/src/contrib: cannot open URL 'http://user:pass@artifactory-url:port/artifactory/cran/src/contrib/PACKAGES' Warning message: package ‘broom’ is not available (for R version 3.3.2)

Upvotes: 1

Views: 1611

Answers (1)

danf
danf

Reputation: 2709

Artifactory supports CRAN repos for R Packages, you can find the documentation here

Upvotes: 0

Related Questions