I think the key bit of error message is about failing up install Rccp,
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** 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’
I'm pretty sure this indicates your using a mac, and need to install xcode. Here are step by step instructions
Once you've got xcode, retry updating Rccp, and then factoextra. 
Also, note for future, this is a good example of how useful sharing your full error messages can be. The pattern that works best for seeking help online is to offer a minimal reproducible example (reprex) of your error, along with your error messages or logs. That kind of information is often key to resolving these kinds of problems.