how to uninstall r from R console code example Example: uninstall R sudo apt-get remove r-base r-base-core