visual-studiomicrosoft-r

mvtnorm fails to load in MS r-client version 3.4.3


When trying to load the library seriation in MS R-Client in Windows, I get the following message:

The library seriation fails to load with the following message:

library(seriation) # package for reordering a distance matrix Error: package or namespace load failed for ‘seriation’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘mvtnorm’ In addition: Warning message: package ‘seriation’ was built under R version 3.4.4

The current version of mvtnorm, 1.0-9 requires r version 3.5 or greater. I have tried installing the package from source from several versions as well as several versions from source here: https://cran.r-project.org/src/contrib/Archive/mvtnorm/

The error message from these attempts is:

Any ideas?


Solution

  • mvtnorm starting 1.0.9 requires R >= 3.5.0 (per package info https://cran.r-project.org/web/packages/mvtnorm/index.html)

    So if you're trying to install it for R 3.4.3, you'd need mvtnorm version 1.0.8, which is available from CRAN archive:

    install.packages("https://cran.r-project.org/src/contrib/Archive/mvtnorm/mvtnorm_1.0-8.tar.gz", repos=NULL)
    

    Ref: https://www.rdocumentation.org/packages/mvtnorm/versions/1.0-8