SPSS Statistics

 View Only
Expand all | Collapse all

Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

  • 1.  Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Fri January 14, 2022 11:43 AM
    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
    ------------------------------


  • 2.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Tue January 18, 2022 11:03 AM
    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
    ------------------------------



  • 3.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Wed April 06, 2022 10:07 AM
    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
    ------------------------------



  • 4.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Wed April 06, 2022 11:15 AM
    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
    ------------------------------



  • 5.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Wed June 01, 2022 01:52 AM
    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
    ------------------------------



  • 6.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Wed June 01, 2022 11:24 AM
    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
    ------------------------------



  • 7.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Thu June 02, 2022 09:22 AM
    Hi, 
    I would like to ask about my role. What do I need to do? The software SPSS is working well on my side.

    Thanks 
    Best Regards Turay williams 





  • 8.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Thu June 02, 2022 09:24 AM
    Did you try what I suggested?

    --





  • 9.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Thu June 02, 2022 12:21 PM
    Hi Sir,
    Yes I have tried one that led me to the courses, and I came across a lot of video lectures. I'm going through the videos....

    Thanks
    best regards Turay Williams





  • 10.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Fri June 03, 2022 05:13 AM
    Hi,

    I' m looking forward to some information about what I  am supposed to do in the group. I have not received any schedule yet. 

    Best Regards
    Mohamed .D.TurayWilliams





  • 11.  RE: Problems loading R package into SPSS v 28.01.0 on Mac Intel Monterey

    Posted Fri June 03, 2022 08:19 AM
    ?
    I, for one, have no idea what you are talking about.

    --