Im tryning to download the following packages:
install.packages("quanteda")
install.packages("quanteda.textstats")
It's not working and I am getting this error message:
installing the source packages ‘RcppArmadillo’, ‘quanteda’
trying URL 'https://cran.rstudio.com/src/contrib/RcppArmadillo_0.10.8.1.0.tar.gz'
Content type 'application/x-gzip' length 1364404 bytes (1.3 MB)
==================================================
downloaded 1.3 MB
trying URL 'https://cran.rstudio.com/src/contrib/quanteda_3.2.1.tar.gz'
Content type 'application/x-gzip' length 4187393 bytes (4.0 MB)
==================================================
downloaded 4.0 MB
- installing source package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
** using staged installation
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 g++... g++
checking whether the C++ compiler works... no
configure: error: in `/private/var/folders/fx/z_rlgzf96bggfvpwt4b3t3640000gn/T/RtmpPUpiiH/R.INSTALLee531fdbb4d5/RcppArmadillo':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘RcppArmadillo’
- removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo’
Warning in install.packages :
installation of package ‘RcppArmadillo’ had non-zero exit status
ERROR: dependency ‘RcppArmadillo’ is not available for package ‘quanteda’
- removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/quanteda’
Warning in install.packages :
installation of package ‘quanteda’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/fx/z_rlgzf96bggfvpwt4b3t3640000gn/T/RtmpplB4Ej/downloaded_packages’
Would really appreciate any help or tips on how to download these packages. Tried everything I can think of...
Julie