I can install xfun (not compiling it) but this is still the 0.14 version I think. When I try to update it to 0.15, I get an error.
install.packages("xfun")
There is a binary version available but the source version is later:
binary source needs_compilation
xfun 0.14 0.15 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) no
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/xfun_0.14.tgz'
Content type 'application/x-gzip' length 197792 bytes (193 KB)
==================================================
downloaded 193 KB
The downloaded binary packages are in
/var/folders/hg/fz6vc83x46n6qlwpnh4k01yw0000gn/T//RtmpwDuL6L/downloaded_packages
Trying to update:
update.packages("xfun")
install.packages("xfun")
There is a binary version available but the source version is later:
binary source needs_compilation
xfun 0.14 0.15 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘xfun’
trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.15.tar.gz'
Content type 'application/x-gzip' length 74045 bytes (72 KB)
==================================================
downloaded 72 KB
- installing source package ‘xfun’ ...
** package ‘xfun’ 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 ‘xfun’
- removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/xfun’
- restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/xfun’
Warning in install.packages :
installation of package ‘xfun’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/hg/fz6vc83x46n6qlwpnh4k01yw0000gn/T/RtmpwDuL6L/downloaded_packages’