How To Install r-cran-gmaps on Kali Linux

In this tutorial we learn how to install r-cran-gmaps on Kali Linux. r-cran-gmaps is GNU R support for producing geographic maps with grid graphics

Introduction

In this tutorial we learn how to install r-cran-gmaps on Kali Linux.

What is r-cran-gmaps

r-cran-gmaps is:

This package provides facilities for easily producing maps based on data sets in the GNU R statistical computing environment.

The gmaps package extends the functionality of the maps package for the grid graphics system, enabling more advanced plots and more functionality. It also makes use of the grid structure to fix problems encountered with the traditional graphics system, such as resizing of graphs.

This package was removed from CRAN and is only available in CRAN archive.

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

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

Install r-cran-gmaps Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-gmaps

Install r-cran-gmaps Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install r-cran-gmaps

How To Uninstall r-cran-gmaps on Kali Linux

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

sudo apt-get remove r-cran-gmaps

Uninstall r-cran-gmaps And Its Dependencies

To uninstall r-cran-gmaps and its dependencies that are no longer needed by Kali Linux, we can use the command below:

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

Remove r-cran-gmaps Configurations and Data

To remove r-cran-gmaps configuration and data from Kali Linux we can use the following command:

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

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

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

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

Dependencies

r-cran-gmaps have the following dependencies:

References

Summary

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