install.packages("lfe")
There is a binary version available but the source version is later:
binary source needs_compilation
lfe 2.5-1998 2.8-5 TRUE
Do you want to install from sources the package which needs compilation?
y/n: y
installing the source package ‘lfe’
trying URL 'http://cran.rstudio.com/src/contrib/lfe_2.8-5.tar.gz'
Content type 'application/x-gzip' length 1117050 bytes (1.1 MB)
downloaded 1.1 MB
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Chicago'
- installing source package ‘lfe’ ...
** package ‘lfe’ successfully unpacked and MD5 sums checked
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in/private/var/folders/8n/4l2szhkn7k13f6qcpqn808t00000gn/T/Rtmp3PLLDB/R.INSTALL7bfe5f8e0390/lfe': configure: error: C compiler cannot create executables See
config.log' for more details
ERROR: configuration failed for package ‘lfe’ - removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/lfe’
Warning in install.packages :
installation of package ‘lfe’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/8n/4l2szhkn7k13f6qcpqn808t00000gn/T/RtmpTSUtPY/downloaded_packages’
library(lfe)
Error in library(lfe) : there is no package called ‘lfe’