I am getting this error when trying to open a RMarkdown file on RStudio. Once I click yes, it says that the binary version of the glue package can't be found, so it uses the source version instead. I have tried looking up my problem - even downloading the binary version of the glue package - but I am still unsure of how to fix this problem.
This is what the console outputs:
Installing 'glue' for R Markdown...
There is a binary version available but the source version is later:
binary source needs_compilation
glue 1.6.0 1.6.1 TRUE
installing the source package ‘glue’
trying URL 'https://cran.rstudio.com/src/contrib/glue_1.6.1.tar.gz'
Content type 'application/x-gzip' length 110723 bytes (108 KB)
downloaded 108 KB
- installing source package ‘glue’ ...
** package ‘glue’ 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
ERROR: compilation failed for package ‘glue’
- removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/glue’
The downloaded source packages are in
Package 'glue' successfully installed.
In utils::install.packages("glue", repos = "https://cran.rstudio.com/") :
installation of package ‘glue’ had non-zero exit status
I would appreciate any advice/help you can give me.