How To Install r-bioc-s4vectors on Ubuntu 18.04

In this tutorial we learn how to install r-bioc-s4vectors on Ubuntu 18.04. r-bioc-s4vectors is BioConductor S4 implementation of vectors and lists

Introduction

In this tutorial we learn how to install r-bioc-s4vectors on Ubuntu 18.04.

What is r-bioc-s4vectors

r-bioc-s4vectors is:

The S4Vectors package defines the Vector and List virtual classes and a set of generic functions that extend the semantic of ordinary vectors and lists in R. Package developers can easily implement vector-like or list-like objects as concrete subclasses of Vector or List. In addition, a few low-level concrete subclasses of general interest (e.g. DataFrame, Rle, and Hits) are implemented in the S4Vectors package itself (many more are implemented in the IRanges package and in other Bioconductor infrastructure packages).

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

sudo apt-get -y install r-bioc-s4vectors

Install r-bioc-s4vectors Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-bioc-s4vectors

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

sudo aptitude -y install r-bioc-s4vectors

How To Uninstall r-bioc-s4vectors on Ubuntu 18.04

To uninstall only the r-bioc-s4vectors package we can use the following command:

sudo apt-get remove r-bioc-s4vectors

Uninstall r-bioc-s4vectors And Its Dependencies

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

sudo apt-get -y autoremove r-bioc-s4vectors

Remove r-bioc-s4vectors Configurations and Data

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

sudo apt-get -y purge r-bioc-s4vectors

Remove r-bioc-s4vectors configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge r-bioc-s4vectors

References

Summary

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