This is the recipe I use to upgrade R on a Linux box. It’s something that I do fairly frequently on fresh EC2 instances.
Remove Old R Check for existing R package.
dpkg -l | grep -E “(r-base-core|cran)” Remove existing R installation.
sudo apt-get purge -y r-base-core Check again …
Continue reading: Upgrading …