Problems to install psych library

Hi everyone,

I am trying to install psych package in RStudio . As I have seen in a previous topic about the same problem I have tried to install from R with administrative privilege, but I get the same error message:

install.packages("psych")
Installing package into ‘C:/Users/lopez/OneDrive/Documentos/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning: dependency ‘mnormt’ is not available
probando la URL 'https://ftp.cixug.es/CRAN/bin/windows/contrib/3.6/psych_1.9.12.31.zip'
Content type 'application/zip' length 3800767 bytes (3.6 MB)
downloaded 3.6 MB

package ‘psych’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\lopez\AppData\Local\Temp\Rtmp2HKUto\downloaded_packages

library(psych)
Error: package or namespace load failed for ‘psych’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘mnormt’
Además: Warning message:
package ‘psych’ was built under R version 3.6.3

Please help.

1 Like

You are missing this dependency, it is not getting installed since mnormt requires R >= 4.0.0 so you need to update your R version to be able to install this package.

1 Like

I have updated R version 4.0 and the library was installed succesfully.

Thanks a lot andresrcs :slight_smile:

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