

This installs the R packages and dependencies on your system. Then run sudo apt install -no-install-recommends r-base

sudo add-apt-repository "deb $(lsb_release -cs)-cran40/"


This installs the R packages and dependencies on your system. Then run sudo apt install -no-install-recommends r-base
sudo add-apt-repository "deb $(lsb_release -cs)-cran40/"