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="")
      % 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="")
    Warning: unable to access index for repository
      Line starting '<html> ...' is malformed!
    Warning in download.packages("rJava", "/tmp", repos = "") :
      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


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="", type="source")'

    Output when running looks like:

    $ 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="", type="source")'
    Installing packages into ‘/usr/local/lib/R/site-library’
    (as ‘lib’ is unspecified)
    Warning: unable to access index for repository
      cannot open URL ''
    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

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