After trying to install tidyverse, I am told it is also installing the dependency jsonlite, and I am asked "Do you want to install from sources the package which needs compilation?" When I say yes, I then get the error,
"xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘jsonlite’
- removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/jsonlite’
Warning in install.packages :
installation of package ‘jsonlite’ had non-zero exit status