none
VS is not showing the latest package version as available on CRAN - xts 0.10-0 RRS feed

  • Question

  • I am trying to download and install the latest version of the xts package available on CRAN, which is version 0.10-0, but when I go to R tools -> Windows -> Packages -> Available menu, and search for xts, only the old version shows up, which is 0.9-7

    I tried to install the latest version using install.packages command but that installs the old version (0.9-7) 

    CRAN or MRAN shows that the latest version is ready for download and install, but VS is still stuck with the old version.

    How can I enforce VS to install the latest version of the xts package (0.10-0)?

    Thank you.

    Regards, Sinan

    Friday, July 14, 2017 12:00 PM

Answers

  • Hey Sinansi,

    What you see has to do with how Microsoft R Open (MRO), and Server for that matter handles packages. Each version of MRO is configured to point to a specific CRAN repo snapshot. The CRAN repo version for MRO 3.4.0 is from May sometime, and the xts 0.10-0 package was released early July, so it's not part of the "snapshot" fro MRO 3.4.0.

    So now, when you use RTVS, the package manager looks at the version of MRO, and looks for the package that would match your MRO version.

    On my machine I also have the "normal" R (CRAN R) installed with a version of 3.4.1, and when I change the R workspace in Visual Studio to use that R engine, I can see the xts 0.10-0. In fact I don't believe that the RTVS package managed would care what version of CRAN R I have, it would always go for the latest version (I'm not sure, but I have a suspicion that it is that way).

    I you do want the latest CRAN package in MRO you can always install it manually (but there can be side effects due to version mis matches):

    install.packages("xts", repos = "https://cloud.r-project.org/", dependencies = TRUE)

    I just ran the above, and the xts 0.10-0 package installed fine on my MRO 3.4.0.

    Hope this helps!

    Niels

     


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

    • Marked as answer by Sinansi Monday, July 17, 2017 8:17 AM
    Monday, July 17, 2017 3:59 AM

All replies

  • I had this issue, and several other bugs, all resolved by installing the latest R version, R CRAN 3.4.1 which is not yet available for Microsoft R Open. 
    Sunday, July 16, 2017 4:57 PM
  • Hey Sinansi,

    What you see has to do with how Microsoft R Open (MRO), and Server for that matter handles packages. Each version of MRO is configured to point to a specific CRAN repo snapshot. The CRAN repo version for MRO 3.4.0 is from May sometime, and the xts 0.10-0 package was released early July, so it's not part of the "snapshot" fro MRO 3.4.0.

    So now, when you use RTVS, the package manager looks at the version of MRO, and looks for the package that would match your MRO version.

    On my machine I also have the "normal" R (CRAN R) installed with a version of 3.4.1, and when I change the R workspace in Visual Studio to use that R engine, I can see the xts 0.10-0. In fact I don't believe that the RTVS package managed would care what version of CRAN R I have, it would always go for the latest version (I'm not sure, but I have a suspicion that it is that way).

    I you do want the latest CRAN package in MRO you can always install it manually (but there can be side effects due to version mis matches):

    install.packages("xts", repos = "https://cloud.r-project.org/", dependencies = TRUE)

    I just ran the above, and the xts 0.10-0 package installed fine on my MRO 3.4.0.

    Hope this helps!

    Niels

     


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

    • Marked as answer by Sinansi Monday, July 17, 2017 8:17 AM
    Monday, July 17, 2017 3:59 AM