uninstall r from mac

C++
rm -rf /Library/Frameworks/R.framework /Applications/R.app \    
/usr/bin/R /usr/bin/Rscript
Source

Also in C++: