Search code examples
rr-packagepsych

Not able to install 'mnormt' package in R 3.6.2


I am trying to install psych package in R 3.6.2 but after installing the same my library function is giving below error for psych:

enter image description here

So i tried installing "mnormt" package which i am not able to install and getting below error:

enter image description here

Any help would be appreciated :)


Solution

  • Try to add the tag version to install command, for example:

    devtools::install_github('cran/mnormt@R-3.0.3')
    

    Check what version you need and replace the tag after the '@'.

    Also. try restarting R if possible.

    If you still get erros,try

    Install an older version of the package, one compatible with the version of R I am running.

    R version is 3.6.3 was released on feb 2020. Try upgrading your R to version 4.x which is latest.

    I go to the mnormt page and click on "old sources" https://cran.r-project.org/src/contrib/Archive/mnormt/

    I see that version 2.0.0 is the most recent release which is prior to my version of R

    Following these pages: "Installing older versions of packages" https://support.rstudio.com/hc/en-us/articles/219949047-Installing-older-versions-of-packages I copy the relevant url into this code and run it in R

    packageurl <- "https://cran.r-project.org/src/contrib/Archive/mnormt/mnormt_2.0.0.tar.gz"
    install.packages(packageurl, repos=NULL, type="source")