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.
- Open the terminal.
- Run
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
to add the GPG key - Run
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
to add the R repository - Run
sudo apt-get update
to update the package list - Run
sudo apt-get install r-base
to install the R package - Run
sudo apt-get install r-base-dev
to compile packages from source
This is the relevant documentation.