How To Install r-cran-bit64 on Ubuntu 18.04

In this tutorial we learn how to install r-cran-bit64 on Ubuntu 18.04. r-cran-bit64 is GNU R S3 Class for Vectors of 64bit Integers

Introduction

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

What is r-cran-bit64

r-cran-bit64 is:

Package ‘bit64’ provides serializable S3 atomic 64bit (signed) integers. These are useful for handling database keys and exact counting in +-2^63. WARNING: do not use them as replacement for 32bit integers, integer64 are not supported for subscripting by R-core and they have different semantics when combined with double, e.g. integer64 + double => integer64. Class integer64 can be used in vectors, matrices, arrays and data.frames. Methods are available for coercion from and to logicals, integers, doubles, characters and factors as well as many elementwise and summary functions. Many fast algorithmic operations such as ‘match’ and ‘order’ support interactive data exploration and manipulation and optionally leverage caching.

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

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

Install r-cran-bit64 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-bit64

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

sudo aptitude -y install r-cran-bit64

How To Uninstall r-cran-bit64 on Ubuntu 18.04

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

sudo apt-get remove r-cran-bit64

Uninstall r-cran-bit64 And Its Dependencies

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

Remove r-cran-bit64 Configurations and Data

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

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

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

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

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

References

Summary

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