R is a free programming language and and illustrations bolstered by the R Foundation for Statistical Computing. The R language is generally utilized among analysts and information diggers for creating measurable programming and information examination. Surveys, information mining overviews, and investigations of academic writing databases show significant increments in notoriety as of February 2020, R positions thirteenth in the TIOBE file, a proportion of prominence of programming dialects.
Update the Repository
Step 1:- Use the given command to update the ubuntu current repository.
$ sudo apt-get update
Step 2:- To install requirement use the following command.
$ sudo apt-get install apt-transport-https software-properties-common -y
$ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository ‘deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/’
Step 3:- To install the R package, Use the given command.
$ sudo apt-get update && sudo apt-get install r-base -y
After installation of the packages, You need to verify the version by using the command.
$ R –version
You should get the R version details .