microsoft / microsoft-r-open

Microsoft R Open Source
212 stars 69 forks source link

Issues getting packages from MRAN #32

Closed mhines-usgs closed 7 years ago

mhines-usgs commented 7 years ago

I am also having issues just starting today, whereas before I had no problems yesterday with the same Travis build using mran as a source repo

My Travis command:

#Install First Set of Dependencies
  - Rscript -e 'install.packages(c("bitops","Rcpp","digest","magrittr","stringi","stringr","yaml","evaluate","formatr","highr","R6","assertthat","lazyeval","DBI","jsonlite","brew","mime","curl","caTools","openssl","memoise","whisker","rstudioapi","git2r","withr","markdown","knitr","htmltools", "rmarkdown","RCurl","htmlTable","roxygen2","dplyr","lubridate", "readr", "base64enc", "whisker"), repos="http://mran.microsoft.com/snapshot/2017-02-08", type="source")'

Output when running looks like:

travis_fold:end:R-session-info
travis_fold:start:install.1
travis_time:start:29ee26ca
$ Rscript -e 'install.packages(c("bitops","Rcpp","digest","magrittr","stringi","stringr","yaml","evaluate","formatr","highr","R6","assertthat","lazyeval","DBI","jsonlite","brew","mime","curl","caTools","openssl","memoise","whisker","rstudioapi","git2r","withr","markdown","knitr","htmltools", "rmarkdown","RCurl","htmlTable","roxygen2","dplyr","lubridate", "readr", "base64enc", "whisker"), repos="http://mran.microsoft.com/snapshot/2017-02-08", type="source")'
Installing packages into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://mran.microsoft.com/snapshot/2017-02-08/src/contrib:
  cannot open URL 'http://mran.microsoft.com/snapshot/2017-02-08/src/contrib/PACKAGES'
Warning message:
packages ‘bitops’, ‘Rcpp’, ‘digest’, ‘magrittr’, ‘stringi’, ‘stringr’, ‘yaml’, ‘evaluate’, ‘formatr’, ‘highr’, ‘R6’, ‘assertthat’, ‘lazyeval’, ‘DBI’, ‘jsonlite’, ‘brew’, ‘mime’, ‘curl’, ‘caTools’, ‘openssl’, ‘memoise’, ‘whisker’, ‘rstudioapi’, ‘git2r’, ‘withr’, ‘markdown’, ‘knitr’, ‘htmltools’, ‘rmarkdown’, ‘RCurl’, ‘htmlTable’, ‘roxygen2’, ‘dplyr’, ‘lubridate’, ‘readr’, ‘base64enc’ are not available (for R version 3.3.2) 

Any tips as to what has changed?

kschaab commented 7 years ago

Hi Megan,

It looks like the http call is redirecting to https. We made some changes to mran last night and are investigating.

Keith

mhines-usgs commented 7 years ago

Thank you Keith!

kschaab commented 7 years ago

Hi Megan,

We fixed the redirect to https, so your script should work now, can you confirm please?

Keith

mhines-usgs commented 7 years ago

Checking, thanks! https://travis-ci.org/USGS-R/repgen/builds/248009054?utm_source=github_status&utm_medium=notification :popcorn:

mhines-usgs commented 7 years ago

Hey, thank you, that did the trick!

kschaab commented 7 years ago

Thanks for confirming Megan!