Search code examples
rmicrosoft-rrevoscaler

Microsoft ML server /R client package issue


I have microsoft ML server/ R Client installed in my system. But when I try to load packages, it is giving version errors like the following :

namespace ‘stringi’ 1.1.6 is being loaded, but >= 1.1.7 is required
namespace ‘Rcpp’ 0.12.14 is already loaded, but >= 0.12.16 is required

This issue exists in a lot of packages. So I tried looking at the repository.

 getOption("repos") 

 CRAN   "https://mran.microsoft.com/snapshot/2018-01-01" 
 CRANextra  "http://www.stats.ox.ac.uk/pub/RWin" 

And I tried downloading only from the 1st link but still, it is downloading the old version only.


Solution

  • Since you are using R Open, you are using checkpoint?

    Checkpoint freezes your mran repository to a specific snapshot in time. it looks like your mran is frozen to 2018-01-01

    https://mran.microsoft.com/snapshot/2018-01-01
    

    change the check point to today and update_packages()

    update_packages()
    

    NOTE: this only works from packages that are installed from mran, if you install a package using devtools::install_github() the package will not come from the snapshot.

    More info on this

    https://mran.microsoft.com/documents/rro/reproducibility

    Look at the FAQ for the following questions.

    Why can't I update to or install the latest CRAN packages?

    Can I change the default repository for Microsoft R Open?

    https://mran.microsoft.com/faq#static-repos

    install.packages() recommends that you always run updated_packages() before installing a new package to ensure that the latest are installed.

    Try the following: (or read the faq to change your repository permanently)

    checkpoint("2018/09/03")
    update_packages()