Error Code from a Client


I am not at all familiar with RStduio, I am just reaching out on behalf of a client I deal with who has it on their computer.

They are running the command "install.packages("psych")" and getting an error code.

Error Code is:
This is the error:

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

Installing package into ‘C:/ Users/turennelap/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘mnormt’ is not available

There is a binary version available but the source version is later:
binary source needs_compilation
psych 2.0.7 FALSE

installing the source package ‘psych’

trying URL 'https:// cran.rstudio. com/src/contrib/psych_2.0.7.tar.gz'
Content type 'application/x-gzip' length 1743492 bytes (1.7 MB)
downloaded 1.7 MB

ERROR: dependency 'mnormt' is not available for package 'psych'

  • removing 'C:/Users/turennelap/Documents/R/win-library/3.6/psych'
    Warning in install.packages :
    installation of package ‘psych’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\ turennelap\AppData\Local\Temp\RtmpwxdNty\downloaded_packages’

I was just wondering if you had any fixes for this/steps of what to do.

I also downloaded Rtools from https :// but I still get the same error.

You are missing the mnormt package for psych to work but it requires R >= 4.0.0 so you have to update R first in order to install it.

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.