I don't see any issues with these packages as posted on CRAN, and they seem to have downloaded to your computer. It's annoying that the messages only report a nonzero install status. That indicates some error but offers no clue as to what the error is.
Hunting around on the web, I found this comment on Mac package installs. You might try again using the install.packages code below substituing the zip file path with the downloaded information for each one.
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")
------------------------------
Jon Peck
------------------------------
Original Message:
Sent: Wed June 01, 2022 01:51 AM
From: James Boyle
Subject: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey
Thanks. Running the syntax gives the following error message:
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
'/private/var/folders/39/_hr456vx1pn0hbtc4kzf7kcm0000gn/T/RtmpgYUxY7/downloaded_packages'
Warning messages:
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
------------------------------
James Boyle
Original Message:
Sent: Wed April 06, 2022 11:15 AM
From: Jon Peck
Subject: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey
You should be able to get a better error message. Try running this from a syntax window.
begin program r.
install.packages("polycor")
end program.
------------------------------
Jon Peck
Original Message:
Sent: Wed April 06, 2022 10:07 AM
From: James Boyle
Subject: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey
Hi, Curtis, apologies for the delay in getting back to you. I'm getting the following error messages:
**** Installing R package polycor for spss280 ****
also installing the dependency 'admisc'
Warning messages:
1: In install.packages("polycor", quiet = TRUE) :
installation of package 'admisc' had non-zero exit status
2: In install.packages("polycor", quiet = TRUE) :
installation of package 'polycor' had non-zero exit status
------------------------------
James Boyle
Original Message:
Sent: Tue January 18, 2022 11:02 AM
From: Curtis Browning
Subject: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey
Hi James. What kind of errors are you seeing? If you can share the errors we should probably be able to locate the cause.
Best,
------------------------------
Curtis Browning
SPSS Statistics Architect
Original Message:
Sent: Fri January 14, 2022 08:50 AM
From: James Boyle
Subject: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey
I am running SPSS v 28.01.0 (142) with XQuartz 2.8.1. on an intel i5 Mac Pro running Monterey 12.1. I have installed HETCOR and also the R package polycor but there are runtime error messages. Is there a way of resolving this? Many thanks.
------------------------------
James Boyle
------------------------------
#SPSSStatistics