How To Install r-cran-rcpp on Debian 11

In this tutorial we learn how to install r-cran-rcpp on Debian 11. r-cran-rcpp is GNU R package for Seamless R and C++ Integration

Introduction

In this tutorial we learn how to install r-cran-rcpp on Debian 11.

What is r-cran-rcpp

r-cran-rcpp is:

The Rcpp package provides R functions as well as C++ classes which offer a seamless integration of R and C++. Many R data types and objects can be mapped back and forth to C++ equivalents which facilitates both writing of new code as well as easier integration of third-party libraries. Documentation about Rcpp is provided by several vignettes included in this package, via the Rcpp Gallery site at http://gallery.rcpp.org, the paper by Eddelbuettel and Francois (2011, JSS), and the book by Eddelbuettel (2013, Springer); see ‘citation(“Rcpp”)’ for details on these last two.

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

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

Install r-cran-rcpp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-rcpp

Install r-cran-rcpp 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install r-cran-rcpp

How To Uninstall r-cran-rcpp on Debian 11

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

sudo apt-get remove r-cran-rcpp

Uninstall r-cran-rcpp And Its Dependencies

To uninstall r-cran-rcpp and its dependencies that are no longer needed by Debian 11, we can use the command below:

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

Remove r-cran-rcpp Configurations and Data

To remove r-cran-rcpp configuration and data from Debian 11 we can use the following command:

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

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

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

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

Dependencies

r-cran-rcpp have the following dependencies:

References

Summary

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