R is an open-source, simple, and efficient programming language and environment for statistical computing and graphics. R is widely used among statisticians and data miners for developing statistical software and performing data analysis. For students or new users looking for a Linux system to learn on, the easiest place to start is Ubuntu Linux OS. It’s a great Linux operating system for beginners. Ubuntu is an open-source Linux operating system that runs on desktops, laptops, servers, and other devices. For more about R, please check out its homepage. When you’re ready to install R on Ubuntu, follow the steps below:

Install R on Ubuntu

R packages are available in Ubuntu default repositories. However, the package version in Ubuntu might not be the latest. To install the latest and get access to newer features and enhancements, you may have to add its repository to Ubuntu. At the time of writing this article, the latest stable version of R is version 3.6.3. Install the packages necessary to add a new repository over HTTPS by running the commands below: After that, run the commands below to add a third-party repository key and repository to Ubuntu. Now that the apt repository is added, update the Ubuntu package and install the R package by running the commands below: After installing, you can run the commands below to verify that the installation was successful. It should output similar lines as below: That’s how to install R on Ubuntu 18.04 | 16.04. Conclusion: This brief tutorial showed students and new users how to install R programming language on Ubuntu 18.04 | 16.04. If you find any error above, please use the comment form below to report it. Thanks, You may also like the post below: