how to remove a package in r code example Example: uninstall R sudo apt-get remove r-base r-base-core