How To Install r-cran-colourpicker on Ubuntu 22.04

In this tutorial we learn how to install r-cran-colourpicker on Ubuntu 22.04. r-cran-colourpicker is GNU R colour picker tool for selecting colours in plots

Introduction

In this tutorial we learn how to install r-cran-colourpicker on Ubuntu 22.04.

What is r-cran-colourpicker

r-cran-colourpicker is:

This GNU R colour picker can be used as an input in Shiny apps or Rmarkdown documents. The colour picker supports alpha opacity, custom colour palettes, and many more options. A Plot Colour Helper tool is available as an RStudio Addin, which helps you pick colours to use in your plots. A more generic Colour Picker RStudio Addin is also provided to let you select colours to use in your R code.

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

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

Install r-cran-colourpicker Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-colourpicker

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

sudo aptitude -y install r-cran-colourpicker

How To Uninstall r-cran-colourpicker on Ubuntu 22.04

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

sudo apt-get remove r-cran-colourpicker

Uninstall r-cran-colourpicker And Its Dependencies

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

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

Remove r-cran-colourpicker Configurations and Data

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

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

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

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

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

References

Summary

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