Reputation: 1279
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