How To Install r-cran-epir on Ubuntu 18.04

In this tutorial we learn how to install r-cran-epir on Ubuntu 18.04. r-cran-epir is GNU R Functions for analysing epidemiological data

Introduction

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

What is r-cran-epir

r-cran-epir is:

A package for analysing epidemiological data. Contains functions for directly and indirectly adjusting measures of disease frequency, quantifying measures of association on the basis of single or multiple strata of count data presented in a contingency table, and computing confidence intervals around incidence risk and incidence rate estimates. Miscellaneous functions for use in meta-analysis, diagnostic test interpretation, and sample size calculations.

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

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

Install r-cran-epir Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-epir

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

sudo aptitude -y install r-cran-epir

How To Uninstall r-cran-epir on Ubuntu 18.04

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

sudo apt-get remove r-cran-epir

Uninstall r-cran-epir And Its Dependencies

To uninstall r-cran-epir 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-epir

Remove r-cran-epir Configurations and Data

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

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

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

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

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

References

Summary

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