Installation package error RStudio on Mac IOS: "installation of package had non-zero exit status"

Hello!
I have a problem with the installation of the package "party" and "strucchange".

Error Information:

Warning in install.packages :
installation of package ‘party’ had non-zero exit status

Warning in install.packages :
installation of package ‘strucchange’ had non-zero exit status

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 1.3.959
  • OS Version: 10.15.5 Catalina

Thank you very much for your advice!

Please post the whole error message, you are not providing enough information for us to been able to help you.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

> install.packages("party")
Warning in install.packages :
  dependency ‘mvtnorm’ is not available
also installing the dependency ‘strucchange’


  There are binary versions available but the source versions are later:
            binary source needs_compilation
strucchange  1.5-1  1.5-2             FALSE
party        1.3-3  1.3-4              TRUE

Do you want to install from sources the package which needs compilation?
y/n: y
installing the source packages ‘strucchange’, ‘party’

versuche URL 'https://cran.rstudio.com/src/contrib/strucchange_1.5-2.tar.gz'
Content type 'application/x-gzip' length 544106 bytes (531 KB)
==================================================
downloaded 531 KB

versuche URL 'https://cran.rstudio.com/src/contrib/party_1.3-4.tar.gz'
Content type 'application/x-gzip' length 734243 bytes (717 KB)
==================================================
downloaded 717 KB

Warnung in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz)
  unknown timezone 'zone/tz/2020a.1.0/zoneinfo/Europe/Zurich'
* installing *source* package ‘strucchange’ ...
** Paket ‘strucchange’ erfolgreich entpackt und MD5 Summen überprüft
** libs

You have not agreed to the Xcode license agreements, please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode license agreements.
ERROR: compilation failed for package ‘strucchange’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/strucchange’
Warning in install.packages :
  installation of package ‘strucchange’ had non-zero exit status
Warnung in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz)
  unknown timezone 'zone/tz/2020a.1.0/zoneinfo/Europe/Zurich'
ERROR: dependencies ‘mvtnorm’, ‘strucchange’ are not available for package ‘party’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/party’
Warning in install.packages :
  installation of package ‘party’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/7r/rqrdmt9j023bhlzjlbt4twdm0000gn/T/RtmpJsmTz0/downloaded_packages’

Try following the instructions from the error message

Hello Andres, many thanks for your reply! I have tried to follow the instructions, but unfortunately it still does not work. In other threads I read about a glitch that seems to occur on iOS systems when trying to install packages in RStudio. Maybe it has still not been fixed?