@torkar please either run the installer here:
Or follow the steps here:
https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/
Using only the clang
available in Xcode is a bad idea in the era of R 3.5.* - Present (R 3.6.*)