Install readxl pachage not working: installation of package ‘readxl’ had non-zero exit status

Hello there, I have problems installing the readxl package to read in excel files ..
I'm using a Macbook Air 2015 with the latest system and I have the latest version of R-Studio. Thank you so much already for every help!!
I added the code responding to my installing approach down low. :slight_smile:

installing the source package ‘readxl’

trying URL 'https://cran.rstudio.com/src/contrib/readxl_1.4.1.tar.gz'
Content type 'application/x-gzip' length 2090383 bytes (2.0 MB)

downloaded 2.0 MB

  • installing source package ‘readxl’ ...
    ** package ‘readxl’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    ERROR: compilation failed for package ‘readxl’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/readxl’

The downloaded source packages are in
‘/private/var/folders/0n/5j81yf0j4ybdsmxnl9hh4y8h0000gn/T/RtmpSbQ649/downloaded_packages’

:heavy_check_mark: Package 'readxl' successfully installed.
Warning message:
In utils::install.packages("readxl", repos = "https://cran.rstudio.com/") :
installation of package ‘readxl’ had non-zero exit status

You might have the latest RStudio version but you have an old R version. RStudio is an IDE for the R programming language but they have independent versions.

Precompiled binaries of the latest package versions are only available for the latest R version, when you use an old R version you are forced to compile from source, but you are missing the required compilers in your system. You can either update your R version to get access to precompiled binaries or install the recommended development tools for macOS systems.
https://mac.r-project.org/tools/

1 Like

I got it, its working!!!

Thank you so much for the fast help!
I wish you all the best!

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.