Beginner - need help with installing "Tidyverse"

Hi, I'm trying to install tidyverse package, but I'm facing some challenges. Below are the warnings/error messages I'm getting from the console, and I have no idea where to start. Just seems like there are lots of errors going on... Can anyone help me with solving the issue?

ERROR: configuration failed for package ‘xml2’
* removing ‘/Users/XXXX/Library/R/3.3/library/xml2’
* restoring previous ‘/Users/XXXX/Library/R/3.3/library/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2020a.1.0/zoneinfo/America/Chicago'
* installing *source* package ‘yaml’ ...
** package ‘yaml’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
ERROR: compilation failed for package ‘yaml’
* removing ‘/Users/XXXX/Library/R/3.3/library/yaml’
* restoring previous ‘/Users/XXXX/Library/R/3.3/library/yaml’
Warning in install.packages :
  installation of package ‘yaml’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2020a.1.0/zoneinfo/America/Chicago'
* installing *source* package ‘htmltools’ ...
** package ‘htmltools’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
ERROR: compilation failed for package ‘htmltools’
* removing ‘/Users/XXXX/Library/R/3.3/library/htmltools’
* restoring previous ‘/Users/XXXX/Library/R/3.3/library/htmltools’
Warning in install.packages :
  installation of package ‘htmltools’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2020a.1.0/zoneinfo/America/Chicago'
* installing *source* package ‘lubridate’ ...
** package ‘lubridate’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
ERROR: compilation failed for package ‘lubridate’
* removing ‘/Users/XXXX/Library/R/3.3/library/lubridate’
* restoring previous ‘/Users/XXXX/Library/R/3.3/library/lubridate’
Warning in install.packages :
  installation of package ‘lubridate’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2020a.1.0/zoneinfo/America/Chicago'
* installing *source* package ‘purrr’ ...
** package ‘purrr’ successfully unpacked and MD5 sums checked
** libs
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
ERROR: compilation failed for package ‘purrr’
* removing ‘/Users/XXXX/Library/R/3.3/library/purrr’
* restoring previous ‘/Users/XXXX/Library/R/3.3/library/purrr’
Warning in install.packages :
  installation of package ‘purrr’ had non-zero exit status

It seems you haven't posted the complete error message so it is possible that we are not seen the root of your problems so it would be better if you post the whole thing.

In the meanwhile there are some evident issues that you can tackle:

  • You are using a very old R version, this is going to bring you a lot of installation problems so I recommend you to update to the latest version (4.0.2). You can download it from here.
    https://cran.r-project.org/bin/macosx/
  • To install packages from source on macOS systems, you need to install Xcode in your system (not in R) and the recommended development tools for macOS systems.
    https://cran.r-project.org/bin/macosx/tools/
1 Like

Thanks a lot for helping with the issue! Downloading the new version and the Xcode did the trick.

Hope you have a great day :slight_smile:

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.