How To Install r-cran-mertools on Ubuntu 20.04

In this tutorial we learn how to install r-cran-mertools on Ubuntu 20.04. r-cran-mertools is GNU R tools for analyzing mixed effect regression models

Introduction

In this tutorial we learn how to install r-cran-mertools on Ubuntu 20.04.

What is r-cran-mertools

r-cran-mertools is:

Provides methods for extracting results from mixed-effect model objects fit with the ’lme4’ package. Allows construction of prediction intervals efficiently from large scale linear and generalized linear mixed-effects models.

There are three methods to install r-cran-mertools on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install r-cran-mertools Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install r-cran-mertools using apt-get by running the following command:

sudo apt-get -y install r-cran-mertools

Install r-cran-mertools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install r-cran-mertools using apt by running the following command:

sudo apt -y install r-cran-mertools

Install r-cran-mertools Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install r-cran-mertools using aptitude by running the following command:

sudo aptitude -y install r-cran-mertools

How To Uninstall r-cran-mertools on Ubuntu 20.04

To uninstall only the r-cran-mertools package we can use the following command:

sudo apt-get remove r-cran-mertools

Uninstall r-cran-mertools And Its Dependencies

To uninstall r-cran-mertools and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove r-cran-mertools

Remove r-cran-mertools Configurations and Data

To remove r-cran-mertools configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge r-cran-mertools

Remove r-cran-mertools configuration, data, and all of its dependencies

We can use the following command to remove r-cran-mertools configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge r-cran-mertools

References

Summary

In this tutorial we learn how to install r-cran-mertools package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.