How to Install "psych" on a Mac

Hi!!

I am attempting to download the "psych" package in R and/or RStudio specifically for the describe.by function. Every time I get this message at the end:
"Warning in install.packages :
installation of package ‘psych’ had non-zero exit status"
I have have attempted downloading other packages in order to successfully get "psych" but quickly realized that this is a common issue for a lot of Mac users. Does anyone know how to solve this issue or if there are any other packages that will allow me to use describe.by?

Thanks!

Hi @anything4ENVSdeg,
Welcome to the RStudio Community Forum.

Try running this command and then copy-paste the console output into your reply. This will help us try to diagnose the problem.

install.packages("psych", dependencies=TRUE, type="mac.binary")

The aim is to avoid compiling any source-code packages since this requires that your Mac machine has additional tools installed. See here:
https://cran.r-project.org/doc/manuals/r-release/R-admin.html

THANK YOU!!! I really appreciate it @DavoWW :blush:

This topic was automatically closed 7 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.