How To Install R-Rcpp-examples on CentOS 8

R-Rcpp-examples is Rcpp Examples

Introduction

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

What is R-Rcpp-examples

Examples for using Rcpp.

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

Install R-Rcpp-examples on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install R-Rcpp-examples

Install R-Rcpp-examples on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install R-Rcpp-examples

How To Uninstall R-Rcpp-examples on CentOS 8

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

sudo dnf remove R-Rcpp-examples

R-Rcpp-examples Package Contents on CentOS 8

/usr/lib64/R/library/Rcpp/examples
/usr/lib64/R/library/Rcpp/examples/Attributes
/usr/lib64/R/library/Rcpp/examples/Attributes/Depends.cpp
/usr/lib64/R/library/Rcpp/examples/Attributes/Export.cpp
/usr/lib64/R/library/Rcpp/examples/Attributes/cppFunction.R
/usr/lib64/R/library/Rcpp/examples/Attributes/sourceCpp.R
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/GNUmakefile
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/buildAndRun.sh
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve10_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve10_cpp.h
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve11_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve12_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve13_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve14_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve2_c.c
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve3_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve4_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve5_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve7_c.c
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve8_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/convolve9_cpp.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/exampleRCode.r
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/loopmacro.h
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/overhead.r
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/overhead.sh
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/overhead_1.cpp
/usr/lib64/R/library/Rcpp/examples/ConvolveBenchmarks/overhead_2.c
/usr/lib64/R/library/Rcpp/examples/FastLM
/usr/lib64/R/library/Rcpp/examples/FastLM/benchmark.r
/usr/lib64/R/library/Rcpp/examples/FastLM/benchmarkLongley.r
/usr/lib64/R/library/Rcpp/examples/FastLM/fastLMviaArmadillo.r
/usr/lib64/R/library/Rcpp/examples/FastLM/fastLMviaGSL.r
/usr/lib64/R/library/Rcpp/examples/FastLM/lmArmadillo.R
/usr/lib64/R/library/Rcpp/examples/FastLM/lmGSL.R
/usr/lib64/R/library/Rcpp/examples/Misc
/usr/lib64/R/library/Rcpp/examples/Misc/fibonacci.r
/usr/lib64/R/library/Rcpp/examples/Misc/ifelseLooped.r
/usr/lib64/R/library/Rcpp/examples/Misc/newFib.r
/usr/lib64/R/library/Rcpp/examples/Misc/piBySimulation.r
/usr/lib64/R/library/Rcpp/examples/Misc/piSugar.cpp
/usr/lib64/R/library/Rcpp/examples/OpenMP
/usr/lib64/R/library/Rcpp/examples/OpenMP/GNUmakefile
/usr/lib64/R/library/Rcpp/examples/OpenMP/OpenMPandInline.r
/usr/lib64/R/library/Rcpp/examples/OpenMP/check.R
/usr/lib64/R/library/Rcpp/examples/OpenMP/piWithInterrupts.cpp
/usr/lib64/R/library/Rcpp/examples/RcppGibbs
/usr/lib64/R/library/Rcpp/examples/RcppGibbs/RcppGibbs.R
/usr/lib64/R/library/Rcpp/examples/RcppGibbs/RcppGibbs_Updated.R
/usr/lib64/R/library/Rcpp/examples/RcppGibbs/timeRNGs.R
/usr/lib64/R/library/Rcpp/examples/RcppInline
/usr/lib64/R/library/Rcpp/examples/RcppInline/RObject.r
/usr/lib64/R/library/Rcpp/examples/RcppInline/RcppInlineExample.r
/usr/lib64/R/library/Rcpp/examples/RcppInline/RcppInlineWithLibsExamples.r
/usr/lib64/R/library/Rcpp/examples/RcppInline/RcppSimpleExample.r
/usr/lib64/R/library/Rcpp/examples/RcppInline/UncaughtExceptions.r
/usr/lib64/R/library/Rcpp/examples/RcppInline/external_pointer.r
/usr/lib64/R/library/Rcpp/examples/SugarPerformance
/usr/lib64/R/library/Rcpp/examples/SugarPerformance/Timer.h
/usr/lib64/R/library/Rcpp/examples/SugarPerformance/Timertest.cpp
/usr/lib64/R/library/Rcpp/examples/SugarPerformance/sugarBenchmarks.R
/usr/lib64/R/library/Rcpp/examples/functionCallback
/usr/lib64/R/library/Rcpp/examples/functionCallback/README
/usr/lib64/R/library/Rcpp/examples/functionCallback/newApiExample.r
/usr/lib64/R/library/Rcpp/examples/performance
/usr/lib64/R/library/Rcpp/examples/performance/extractors.R
/usr/lib64/R/library/Rcpp/examples/performance/performance.R

References

Summary

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