I\'m pretty new to R so apologies for a stupid question. I\'m trying to get rcpp running but I\'m stuck in an endless loop of R asking me to re-install RTools.
In the end it was something a bit left-field. Inspired by the following post, I had a look at the ComSpec environment variable. Not quite sure how, but I had it set to "cmd.exe".
Removing the double quotes, so it said cmd.exe, and then rebooting fixed everything.