SPSS Statistics

 View Only
  • 1.  SPSS Extension Pack R

    Posted Mon May 23, 2022 10:26 AM

    Hi everyone!

    I am attempting to download an R extension pack on SPSS in order to use firth logistic regression. However, I keep running into a specific obstacle regarding non-zero exit status for packages: broom, scales, and ggplot2. Therefore, I have attached screenshots of my SPSS output and was hoping someone would know how I could address this issue. Thank you in advance for your time and response!

    *I am using SPSS 27 on a Windows Computer, R configuration 36, and R package 3.6.0*






    ------------------------------
    Angelique van der Burgh
    ------------------------------

    #SPSSStatistics


  • 2.  RE: SPSS Extension Pack R

    IBM Champion
    Posted Mon May 23, 2022 11:15 AM
    Looking at CRAN, I don't see any problems with broom or the other dependencies.  Try running this code from a syntax window

    begin program r.
    install.packages("broom")
    end program.

    If that doesn't work, it might at least produce a more useful error message.  If it does work, try the same strategy for ggplot2 and scales.

    Although it is not normally necessary for installing packages, you might try starting Statistics in Admin mode before trying the package installs.

    Looking at CRAN, I don't see broom, ggplot2, or scales listed as dependencies.  It's possible that the authors neglected to update the list - these didn't use to be required.  If that is the problem, then the begin program block should fix it.






    ------------------------------
    Jon Peck
    ------------------------------



  • 3.  RE: SPSS Extension Pack R

    Posted Mon May 23, 2022 03:19 PM
    Hi, 

    Thank you for your suggestion! I tried running the syntax suggested however I still got the same result, it is attached at the bottom of the message.



    ------------------------------
    Angelique van der Burgh
    ------------------------------



  • 4.  RE: SPSS Extension Pack R

    IBM Champion
    Posted Mon May 23, 2022 03:30 PM
    So, it successfully downloaded these packages, but the installs failed.

    Did you try starting Statistics via Run as Admin before doing that?

    --





  • 5.  RE: SPSS Extension Pack R

    IBM Champion
    Posted Mon May 23, 2022 03:53 PM
    I see a lot of complaints on the web about installing these packages, but one more thing you could try is
    install.packages('devtools')

    and if that works, try the other packages again.

    --





  • 6.  RE: SPSS Extension Pack R

    Posted Mon May 23, 2022 03:32 PM
    In addition, running it in admin mode delivers the same error; the package has non-zero exit status.

    ------------------------------
    Angelique van der Burgh
    ------------------------------