none
Package installation fails when using MRAN repository RRS feed

  • Question

  • Hello,

    I'm having problems downloading packages from the MRAN repository. CRAN works fine, see the code example below.

    I need to download packages from MRAN.

    Am I making some stupid mistake here? What causes this error?

    > download.packages("rJava", "/tmp", repos="http://cran.r-project.org")
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  641k  100  641k    0     0  2666k      0 --:--:-- --:--:-- --:--:-- 2671k
         [,1]    [,2]
    [1,] "rJava" "/tmp/rJava_0.9-8.tar.gz"
    > download.packages("rJava", "/tmp", repos="http://mran.microsoft.com/snapshot/2017-05-01")
    Warning: unable to access index for repository http://mran.microsoft.com/snapshot/2017-05-01/src/contrib:
      Line starting '<html> ...' is malformed!
    Warning in download.packages("rJava", "/tmp", repos = "http://mran.microsoft.com/snapshot/2017-05-01") :
      no package ‘rJava’ at the repositories
         [,1] [,2]
    >
    Note: I'm using Microsoft Open R 3.4.0 on Red Hat Enterprise Linux 7.3.


    Wednesday, June 28, 2017 9:38 AM

Answers

All replies

  • 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) 



    • Edited by mhines-usgs Wednesday, June 28, 2017 3:44 PM
    Wednesday, June 28, 2017 3:42 PM
  • See

    https://github.com/Microsoft/microsoft-r-open/issues/32#issuecomment-311706440

    • Proposed as answer by nielsbMVP Monday, July 3, 2017 4:38 AM
    • Marked as answer by Benjamin Greve Monday, July 3, 2017 7:02 AM
    Wednesday, June 28, 2017 4:47 PM
  • Hi guys,

    I've proposed mhines-usgs reply referring to the github issue as an answer, as it seems there was in internal MRAN issue causing the failures. In addition it now works fine on Windows - haven't checked on Linux.

    Niels


    http://www.nielsberglund.com | @nielsberglund

    Monday, July 3, 2017 4:39 AM
  • Thanks, seems like it was just a temporary issue. Everything works fine now.

    Monday, July 3, 2017 7:05 AM