How To Install r-cran-mnormt on Ubuntu 18.04

In this tutorial we learn how to install r-cran-mnormt on Ubuntu 18.04. r-cran-mnormt is GNU R package providing multivariate normal and t distribution

Introduction

In this tutorial we learn how to install r-cran-mnormt on Ubuntu 18.04.

What is r-cran-mnormt

r-cran-mnormt is:

This package provides functions for computing the density and the distribution function of, and for generating random vectors from the multivariate normal and multivariate t distributions. It provides functions similar in scope to those of the package ‘mvtnorm’, but with some differences; one of these is that probabilities are computed via a non-Monte Carlo method.

There are three methods to install r-cran-mnormt on Ubuntu 18.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-mnormt 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-mnormt using apt-get by running the following command:

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

Install r-cran-mnormt Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-mnormt

Install r-cran-mnormt 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-mnormt using aptitude by running the following command:

sudo aptitude -y install r-cran-mnormt

How To Uninstall r-cran-mnormt on Ubuntu 18.04

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

sudo apt-get remove r-cran-mnormt

Uninstall r-cran-mnormt And Its Dependencies

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

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

Remove r-cran-mnormt Configurations and Data

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

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

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

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

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

References

Summary

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