How To Install R-Rcpp on Rocky Linux 8

In this tutorial we learn how to install R-Rcpp on Rocky Linux 8. R-Rcpp is Seamless R and C++ Integration

Introduction

In this tutorial we learn how to install R-Rcpp on Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove R-Rcpp

R-Rcpp Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/be
/usr/lib/.build-id/be/4a9a841941350070930c041c3ec47ca52b45a1
/usr/lib64/R/library/Rcpp
/usr/lib64/R/library/Rcpp/CITATION
/usr/lib64/R/library/Rcpp/DESCRIPTION
/usr/lib64/R/library/Rcpp/INDEX
/usr/lib64/R/library/Rcpp/Meta
/usr/lib64/R/library/Rcpp/Meta/Rd.rds
/usr/lib64/R/library/Rcpp/Meta/features.rds
/usr/lib64/R/library/Rcpp/Meta/hsearch.rds
/usr/lib64/R/library/Rcpp/Meta/links.rds
/usr/lib64/R/library/Rcpp/Meta/nsInfo.rds
/usr/lib64/R/library/Rcpp/Meta/package.rds
/usr/lib64/R/library/Rcpp/Meta/vignette.rds
/usr/lib64/R/library/Rcpp/NAMESPACE
/usr/lib64/R/library/Rcpp/NEWS.Rd
/usr/lib64/R/library/Rcpp/R
/usr/lib64/R/library/Rcpp/R/Rcpp
/usr/lib64/R/library/Rcpp/R/Rcpp.rdb
/usr/lib64/R/library/Rcpp/R/Rcpp.rdx
/usr/lib64/R/library/Rcpp/announce
/usr/lib64/R/library/Rcpp/announce/ANNOUNCE-0.10.0.txt
/usr/lib64/R/library/Rcpp/announce/ANNOUNCE-0.11.0.txt
/usr/lib64/R/library/Rcpp/announce/ANNOUNCE-0.6.0.txt
/usr/lib64/R/library/Rcpp/announce/ANNOUNCE-0.7.0.txt
/usr/lib64/R/library/Rcpp/announce/ANNOUNCE-0.8.0.txt
/usr/lib64/R/library/Rcpp/announce/ANNOUNCE-0.9.0.txt
/usr/lib64/R/library/Rcpp/bib
/usr/lib64/R/library/Rcpp/bib/Rcpp.bib
/usr/lib64/R/library/Rcpp/discovery
/usr/lib64/R/library/Rcpp/discovery/cxx0x.R
/usr/lib64/R/library/Rcpp/doc
/usr/lib64/R/library/Rcpp/doc/Rcpp-FAQ.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-FAQ.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-attributes.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-attributes.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-extending.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-extending.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-introduction.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-introduction.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-jss-2011.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-jss-2011.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-libraries.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-libraries.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-modules.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-modules.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-package.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-package.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-quickref.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-quickref.pdf
/usr/lib64/R/library/Rcpp/doc/Rcpp-sugar.Rnw
/usr/lib64/R/library/Rcpp/doc/Rcpp-sugar.pdf
/usr/lib64/R/library/Rcpp/doc/index.html
/usr/lib64/R/library/Rcpp/help
/usr/lib64/R/library/Rcpp/help/$,C++Class-method.html
/usr/lib64/R/library/Rcpp/help/$,C++Object-method.html
/usr/lib64/R/library/Rcpp/help/$,Module-method.html
/usr/lib64/R/library/Rcpp/help/$<-,C++Object-method.html
/usr/lib64/R/library/Rcpp/help/.DollarNames,ANY-method.html
/usr/lib64/R/library/Rcpp/help/.DollarNames,C++Object-method.html
/usr/lib64/R/library/Rcpp/help/.DollarNames,Module-method.html
/usr/lib64/R/library/Rcpp/help/.DollarNames-methods.html
/usr/lib64/R/library/Rcpp/help/AnIndex
/usr/lib64/R/library/Rcpp/help/C++Class-class.html
/usr/lib64/R/library/Rcpp/help/C++Constructor-class.html
/usr/lib64/R/library/Rcpp/help/C++Field-class.html
/usr/lib64/R/library/Rcpp/help/C++Function-class.html
/usr/lib64/R/library/Rcpp/help/C++Object-class.html
/usr/lib64/R/library/Rcpp/help/C++OverloadedMethods-class.html
/usr/lib64/R/library/Rcpp/help/CppClass-class.html
/usr/lib64/R/library/Rcpp/help/CppConstructor-class.html
/usr/lib64/R/library/Rcpp/help/CppField-class.html
/usr/lib64/R/library/Rcpp/help/CppFunction-class.html
/usr/lib64/R/library/Rcpp/help/CppObject-class.html
/usr/lib64/R/library/Rcpp/help/CppOverloadedMethods-class.html
/usr/lib64/R/library/Rcpp/help/DollarNames-methods.html
/usr/lib64/R/library/Rcpp/help/LdFlags.html
/usr/lib64/R/library/Rcpp/help/Module-class.html
/usr/lib64/R/library/Rcpp/help/Module.html
/usr/lib64/R/library/Rcpp/help/Rcpp-deprecated.html
/usr/lib64/R/library/Rcpp/help/Rcpp-internal.html
/usr/lib64/R/library/Rcpp/help/Rcpp-package.html
/usr/lib64/R/library/Rcpp/help/Rcpp.html
/usr/lib64/R/library/Rcpp/help/Rcpp.package.skeleton.html
/usr/lib64/R/library/Rcpp/help/Rcpp.plugin.maker.html
/usr/lib64/R/library/Rcpp/help/Rcpp.rdb
/usr/lib64/R/library/Rcpp/help/Rcpp.rdx
/usr/lib64/R/library/Rcpp/help/RcppClass-class.html
/usr/lib64/R/library/Rcpp/help/RcppLdFlags.html
/usr/lib64/R/library/Rcpp/help/RcppUnitTests.html
/usr/lib64/R/library/Rcpp/help/aliases.rds
/usr/lib64/R/library/Rcpp/help/areMacrosDefined.html
/usr/lib64/R/library/Rcpp/help/compileAttributes.html
/usr/lib64/R/library/Rcpp/help/compilerCheck.html
/usr/lib64/R/library/Rcpp/help/cppFunction.html
/usr/lib64/R/library/Rcpp/help/cpp_object_dummy.html
/usr/lib64/R/library/Rcpp/help/cpp_object_initializer.html
/usr/lib64/R/library/Rcpp/help/demangle.html
/usr/lib64/R/library/Rcpp/help/dependsAttribute.html
/usr/lib64/R/library/Rcpp/help/evalCpp.html
/usr/lib64/R/library/Rcpp/help/exportAttribute.html
/usr/lib64/R/library/Rcpp/help/exposeClass.html
/usr/lib64/R/library/Rcpp/help/formals.html
/usr/lib64/R/library/Rcpp/help/formals<-,C++Function-method.html
/usr/lib64/R/library/Rcpp/help/formals<--methods.html
/usr/lib64/R/library/Rcpp/help/getRcppVersion.html
/usr/lib64/R/library/Rcpp/help/initialize,Module-method.html
/usr/lib64/R/library/Rcpp/help/interfacesAttribute.html
/usr/lib64/R/library/Rcpp/help/loadModule.html
/usr/lib64/R/library/Rcpp/help/loadRcppClass.html
/usr/lib64/R/library/Rcpp/help/loadRcppModules-deprecated.html
/usr/lib64/R/library/Rcpp/help/loadRcppModules.html
/usr/lib64/R/library/Rcpp/help/paths.rds
/usr/lib64/R/library/Rcpp/help/pluginsAttribute.html
/usr/lib64/R/library/Rcpp/help/populate.html
/usr/lib64/R/library/Rcpp/help/print.bytes.html
/usr/lib64/R/library/Rcpp/help/prompt,Module-method.html
/usr/lib64/R/library/Rcpp/help/registerPlugin.html
/usr/lib64/R/library/Rcpp/help/setRcppClass.html
/usr/lib64/R/library/Rcpp/help/show,C++Class-method.html
/usr/lib64/R/library/Rcpp/help/show,C++Function-method.html
/usr/lib64/R/library/Rcpp/help/show,C++Object-method.html
/usr/lib64/R/library/Rcpp/help/show,Module-method.html
/usr/lib64/R/library/Rcpp/help/sizeof.html
/usr/lib64/R/library/Rcpp/help/sourceCpp.html
/usr/lib64/R/library/Rcpp/html
/usr/lib64/R/library/Rcpp/html/00Index.html
/usr/lib64/R/library/Rcpp/html/CppClass-class.html
/usr/lib64/R/library/Rcpp/html/CppConstructor-class.html
/usr/lib64/R/library/Rcpp/html/CppField-class.html
/usr/lib64/R/library/Rcpp/html/CppFunction-class.html
/usr/lib64/R/library/Rcpp/html/CppObject-class.html
/usr/lib64/R/library/Rcpp/html/CppOverloadedMethods-class.html
/usr/lib64/R/library/Rcpp/html/DollarNames-methods.html
/usr/lib64/R/library/Rcpp/html/Module-class.html
/usr/lib64/R/library/Rcpp/html/Module.html
/usr/lib64/R/library/Rcpp/html/R.css
/usr/lib64/R/library/Rcpp/html/Rcpp-deprecated.html
/usr/lib64/R/library/Rcpp/html/Rcpp-internal.html
/usr/lib64/R/library/Rcpp/html/Rcpp-package.html
/usr/lib64/R/library/Rcpp/html/Rcpp.package.skeleton.html
/usr/lib64/R/library/Rcpp/html/Rcpp.plugin.maker.html
/usr/lib64/R/library/Rcpp/html/RcppLdFlags.html
/usr/lib64/R/library/Rcpp/html/RcppUnitTests.html
/usr/lib64/R/library/Rcpp/html/compileAttributes.html
/usr/lib64/R/library/Rcpp/html/compilerCheck.html
/usr/lib64/R/library/Rcpp/html/cppFunction.html
/usr/lib64/R/library/Rcpp/html/demangle.html
/usr/lib64/R/library/Rcpp/html/dependsAttribute.html
/usr/lib64/R/library/Rcpp/html/evalCpp.html
/usr/lib64/R/library/Rcpp/html/exportAttribute.html
/usr/lib64/R/library/Rcpp/html/exposeClass.html
/usr/lib64/R/library/Rcpp/html/formals.html
/usr/lib64/R/library/Rcpp/html/getRcppVersion.html
/usr/lib64/R/library/Rcpp/html/interfacesAttribute.html
/usr/lib64/R/library/Rcpp/html/loadModule.html
/usr/lib64/R/library/Rcpp/html/loadRcppModules-deprecated.html
/usr/lib64/R/library/Rcpp/html/pluginsAttribute.html
/usr/lib64/R/library/Rcpp/html/populate.html
/usr/lib64/R/library/Rcpp/html/registerPlugin.html
/usr/lib64/R/library/Rcpp/html/setRcppClass.html
/usr/lib64/R/library/Rcpp/html/sourceCpp.html
/usr/lib64/R/library/Rcpp/libs
/usr/lib64/R/library/Rcpp/libs/Rcpp.so
/usr/lib64/R/library/Rcpp/prompt
/usr/lib64/R/library/Rcpp/prompt/module.Rd
/usr/lib64/R/library/Rcpp/skeleton
/usr/lib64/R/library/Rcpp/skeleton/Num.cpp
/usr/lib64/R/library/Rcpp/skeleton/Rcpp_modules_examples.Rd
/usr/lib64/R/library/Rcpp/skeleton/manual-page-stub.Rd
/usr/lib64/R/library/Rcpp/skeleton/rcpp_hello_world.R
/usr/lib64/R/library/Rcpp/skeleton/rcpp_hello_world.Rd
/usr/lib64/R/library/Rcpp/skeleton/rcpp_hello_world.cpp
/usr/lib64/R/library/Rcpp/skeleton/rcpp_hello_world.h
/usr/lib64/R/library/Rcpp/skeleton/rcpp_hello_world_attributes.cpp
/usr/lib64/R/library/Rcpp/skeleton/rcpp_module.cpp
/usr/lib64/R/library/Rcpp/skeleton/stdVector.cpp
/usr/lib64/R/library/Rcpp/skeleton/zzz.R

References

Summary

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