How To Install R-Rcpp on CentOS 7
Introduction
In this tutorial we learn how to install R-Rcpp
on CentOS 7.
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 (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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install R-Rcpp.
Install R-Rcpp on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install R-Rcpp
using yum
by running the following command:
Install R-Rcpp on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install R-Rcpp
using dnf
by running the following command:
How To Uninstall R-Rcpp on CentOS 7
To uninstall only the R-Rcpp
package we can use the following command:
References
Summary
In this tutorial we learn how to install R-Rcpp
on CentOS 7 using yum
and dnf
.