sudo /usr/sbin/rstudio-server stop #stop the current version
# Download
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/rstudio-server-1.1.463-amd64.deb
sudo gdebi rstudio-server-1.1.463-amd64.deb
sudo su
echo "deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
apt-get update
apt-get install r-base
apt-get install r-base-dev
Remember to check the Ubuntu version name using sudo lsb_release -a
See CRAN also.
update.packages(ask = FALSE)
Otherwise this kind of error will occur: Error: package XXX was installed by an R version with different internals; it needs to be reinstalled for use with this R version
Or just reinstall the old packages...