Installing package into '/Users/jamesboyle/Library/Application Support/IBM/SPSS Statistics/28/extensions'
(as 'lib' is unspecified)
also installing the dependency 'admisc'
trying URL 'https://cloud.r-project.org/src/contrib/admisc_0.27.tar.gz'
Content type 'application/x-gzip' length 58494 bytes (57 KB)
downloaded 57 KB
trying URL 'https://cloud.r-project.org/src/contrib/polycor_0.8-1.tar.gz'
Content type 'application/x-gzip' length 13931 bytes (13 KB)
downloaded 13 KB
The downloaded source packages are in
1: In install.packages("polycor") :
installation of package 'admisc' had non-zero exit status
2: In install.packages("polycor") :
installation of package 'polycor' had non-zero exit status
If you get a non-zero exit status first check to ensure all dependencies are installed as well. Read through the messaging. If that is checked off, then look for indications such as gfortran: No such a file or directory. That might be due to Apple OS compiler issues that some packages will not install unless you use their binary version. Look for binary zip file in the package cran.r-project.org page, download it and use the following command to get the package installed:
install.packages("/PATH/zip file ", repos = NULL, type="source")