Update R linux mint

Welcome to the community!

I really should not answer this question, as I experienced Linux (Ubuntu, actually) for the first time not even a week ago. I'm sharing what I did to have the latest version of R there, and I hope it'll work in Linux Mint too.

  1. Open the terminal.
  2. Run sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 to add the GPG key
  3. Run sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' to add the R repository
  4. Run sudo apt-get update to update the package list
  5. Run sudo apt-get install r-base to install the R package
  6. Run sudo apt-get install r-base-dev to compile packages from source

This is the relevant documentation.