none
Problem installing certain packages in Open R 3.5.1 RRS feed

  • Question

  • This is more of an FYI than an unresolved issue, though I don't fully understand why the problem occurred.

    After updating to Open R 3.5.1 from 3.4.4 some of my package updates failed, example code with errors is given below. The solution was to manually install certain dependencies (e.g., tibble for tidyr). It seems this was due to the 3.5 folder not being at http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/.  But I don't understand why it was trying to access tibble from there in the first place.

    *************** R Console output ***********************

    Microsoft R Open 3.5.1
    The enhanced R distribution from Microsoft
    Microsoft packages Copyright (C) 2018 Microsoft Corporation

    Using the Intel MKL for parallel mathematical computing (using 4 cores).

    Default CRAN mirror snapshot taken on 2018-08-01.
    See: https://mran.microsoft.com/.

    > install.packages(c("tidyr", "car"))
    Installing packages into ‘C:/Users/nrudd/Documents/R/win-library/3.5’
    (as ‘lib’ is unspecified)
    Warning in install.packages :
      unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5:
      cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.5/PACKAGES'
    trying URL 'https://mran.microsoft.com/snapshot/2018-08-01/bin/windows/contrib/3.5/tidyr_0.8.1.zip'
    Content type 'application/zip' length 943297 bytes (921 KB)
    downloaded 921 KB

    trying URL 'https://mran.microsoft.com/snapshot/2018-08-01/bin/windows/contrib/3.5/car_3.0-0.zip'
    Content type 'application/zip' length 1471038 bytes (1.4 MB)
    downloaded 1.4 MB

    package ‘tidyr’ successfully unpacked and MD5 sums checked
    package ‘car’ successfully unpacked and MD5 sums checked

    The downloaded binary packages are in
    C:\Users\nrudd\AppData\Local\Temp\1\RtmpeQuZ1o\downloaded_packages
    > library(tidyr)
    Error: package or namespace load failed for ‘tidyr’:
     package ‘tibble’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version

    Monday, August 13, 2018 9:40 PM

Answers

  • I am unable to reproduce the problem on my machine, but the error message you are getting seems to indicate that you need to reinstall the R library 'tibble' on your machine at least, to get things to work.

    Try this:

    1.) remove.packages("tibble")

    2). Launch a new R session

    3). install.packages(c("tidyr", "car"))

    Their may be other packages that are old and need reinstalling as well. If you remove those, you should be able to get to working state.  Let us know, if you continue to have problems.

    • Marked as answer by MonkR Tuesday, August 14, 2018 10:24 PM
    Tuesday, August 14, 2018 6:31 PM

All replies

  • I am unable to reproduce the problem on my machine, but the error message you are getting seems to indicate that you need to reinstall the R library 'tibble' on your machine at least, to get things to work.

    Try this:

    1.) remove.packages("tibble")

    2). Launch a new R session

    3). install.packages(c("tidyr", "car"))

    Their may be other packages that are old and need reinstalling as well. If you remove those, you should be able to get to working state.  Let us know, if you continue to have problems.

    • Marked as answer by MonkR Tuesday, August 14, 2018 10:24 PM
    Tuesday, August 14, 2018 6:31 PM
  • Thanks, I meant to say that I got around the problem by manually installing the dependencies that seemed to be triggering the error (I did not remove them or restart R before installing each dependent package, though I'll make note of that for the future).

    Things seem to be working ok now.

    Tuesday, August 14, 2018 7:53 PM