WRS2 package install fail

Hi, having trouble installing WRS2 package into RStudio 3.3.3. I get the following after installing and selecting a UK mirror, from install.packages("WRS2"):

** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called 'mvtnorm'
ERROR: lazy loading failed for package 'WRS2'

  • removing 'C:/Users/waldy/Documents/R/win-library/3.3/WRS2'

The downloaded source packages are in
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\waldy\Documents\R\win-library\3.3" C:\Users\waldy\AppData\Local\Temp\Rtmpwr3jQp/downloaded_packages/WRS2_0.10-0.tar.gz' had status 1
2: In install.packages("WRS2") :
installation of package ‘WRS2’ had non-zero exit status

When I do an installed.packages, WRS2 is not listed. Any help or pointers appreciated.

I think you are confusing your Rstudio version with your R version (they are not the same), if you are using R 3.3.3 then your problem is that mvtnorm package, which is a dependency of WRS2, it's only available for R >= 3.5 so the solution would be to update R to the latest version (3.5.3).

Hi, thanks and yes it's the R version. My problem is that I'm using R with the R essentials extension in SPSS v25. Bizarrely it works in SPSS 24 wir R version 3.2.5

With an update of SPSS and the R Essentials dependancy of R3.3, it's broke

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.