How To Install R-Rcpp on AlmaLinux 8

In this tutorial we learn how to install R-Rcpp in AlmaLinux 8. R-Rcpp is Seamless R and C++ Integration

Introduction

In this tutorial we learn how to install R-Rcpp on AlmaLinux 8.

What is R-Rcpp

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 the paper by Eddelbuettel and Francois (2011, JSS), and the book by Eddelbuettel (2013, Springer). See citation(“Rcpp”) for details on the last two.

We can use yum or dnf to install R-Rcpp on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install R-Rcpp.

Install R-Rcpp on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install R-Rcpp using dnf by running the following command:

sudo dnf -y install R-Rcpp

Install R-Rcpp on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install R-Rcpp using yum by running the following command:

sudo yum -y install R-Rcpp

How To Uninstall R-Rcpp on AlmaLinux 8

To uninstall only the R-Rcpp package we can use the following command:

sudo dnf remove R-Rcpp

References

Summary

In this tutorial we learn how to install R-Rcpp on AlmaLinux 8 using yum and dnf.