I am not able to load the package tidyverse (it is installed, but not loaded). The following message appears when trying to load it:
> library(tidyverse) Error: package or namespace load failed for 'tidyverse' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called 'Rcpp'
So it seems that I need to install the package Rcpp. After I install it the following message appears:
> install.packages("Rcpp") There is a binary version available but the source version is later: binary source needs_compilation Rcpp 1.0.4 18.104.22.168 TRUE Do you want to install from sources the package which needs compilation? (Yes/no/cancel) yes installing the source package 'Rcpp' trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_22.214.171.124.tar.gz' Content type 'application/x-gzip' length 2751467 bytes (2.6 MB) ================================================== downloaded 2.6 MB During startup - Warning messages: 1: Setting LC_CTYPE failed, using "C" 2: Setting LC_TIME failed, using "C" 3: Setting LC_MESSAGES failed, using "C" 4: Setting LC_MONETARY failed, using "C" * installing *source* package 'Rcpp' ... ** package 'Rcpp' 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 'Rcpp' * removing '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp' Warning in install.packages : installation of package 'Rcpp' had non-zero exit status The downloaded source packages are in '/private/var/folders/1d/94sf45nn14g6b5ldhdf5tm3r0000gn/T/Rtmp3liROx/downloaded_packages'
When I check if the package was installed with these code:
my_packages <- library()$results[,1] my_packages=="Rcpp"
There is no TRUE, so the package wasn´t install.
Can someone please help me? Been dealing with this problem 3 days already, and can´t continue with a course I´m taking.