How To Install R-RInside-examples on CentOS 8

R-RInside-examples is RInside Examples

Introduction

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

What is R-RInside-examples

Numerous examples are provided in the nine sub-directories of the examples directory of the installed package parallel computing), qt (showing how to embed RInside inside a Qt GUI application), wt (showing how to build a “web-application” using the Wt toolkit), armadillo (for RInside use with RcppArmadillo), eigen (for RInside use with RcppEigen) and ‘c_interface’ for a basic C interface and ‘Ruby’ illustration.

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

Install R-RInside-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-RInside-examples using dnf by running the following command:

sudo dnf -y install R-RInside-examples

Install R-RInside-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-RInside-examples using yum by running the following command:

sudo yum -y install R-RInside-examples

How To Uninstall R-RInside-examples on CentOS 8

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

sudo dnf remove R-RInside-examples

R-RInside-examples Package Contents on CentOS 8

/usr/lib64/R/library/RInside/examples
/usr/lib64/R/library/RInside/examples/armadillo
/usr/lib64/R/library/RInside/examples/armadillo/GNUmakefile
/usr/lib64/R/library/RInside/examples/armadillo/cmake
/usr/lib64/R/library/RInside/examples/armadillo/cmake/CMakeLists.txt
/usr/lib64/R/library/RInside/examples/armadillo/cmake/WIN.readme.txt
/usr/lib64/R/library/RInside/examples/armadillo/rinside_arma0.cpp
/usr/lib64/R/library/RInside/examples/armadillo/rinside_arma1.cpp
/usr/lib64/R/library/RInside/examples/c_interface
/usr/lib64/R/library/RInside/examples/c_interface/GNUmakefile
/usr/lib64/R/library/RInside/examples/c_interface/hello.c
/usr/lib64/R/library/RInside/examples/c_interface/hello.rb
/usr/lib64/R/library/RInside/examples/c_interface/passdata.c
/usr/lib64/R/library/RInside/examples/c_interface/passdata.rb
/usr/lib64/R/library/RInside/examples/eigen
/usr/lib64/R/library/RInside/examples/eigen/GNUmakefile
/usr/lib64/R/library/RInside/examples/eigen/cmake
/usr/lib64/R/library/RInside/examples/eigen/cmake/CMakeLists.txt
/usr/lib64/R/library/RInside/examples/eigen/cmake/WIN.readme.txt
/usr/lib64/R/library/RInside/examples/eigen/rinside_eigen0.cpp
/usr/lib64/R/library/RInside/examples/eigen/rinside_eigen1.cpp
/usr/lib64/R/library/RInside/examples/mpi
/usr/lib64/R/library/RInside/examples/mpi/GNUmakefile
/usr/lib64/R/library/RInside/examples/mpi/cmake
/usr/lib64/R/library/RInside/examples/mpi/cmake/CMakeLists.txt
/usr/lib64/R/library/RInside/examples/mpi/rinside_mpi_sample0.cpp
/usr/lib64/R/library/RInside/examples/mpi/rinside_mpi_sample1.cpp
/usr/lib64/R/library/RInside/examples/mpi/rinside_mpi_sample2.cpp
/usr/lib64/R/library/RInside/examples/mpi/rinside_mpi_sample3.cpp
/usr/lib64/R/library/RInside/examples/mpi/rinside_mpi_sample4.cpp
/usr/lib64/R/library/RInside/examples/qt
/usr/lib64/R/library/RInside/examples/qt/README
/usr/lib64/R/library/RInside/examples/qt/cmake
/usr/lib64/R/library/RInside/examples/qt/cmake/CMakeLists.txt
/usr/lib64/R/library/RInside/examples/qt/main.cpp
/usr/lib64/R/library/RInside/examples/qt/qtdensity.cpp
/usr/lib64/R/library/RInside/examples/qt/qtdensity.h
/usr/lib64/R/library/RInside/examples/qt/qtdensity.pro
/usr/lib64/R/library/RInside/examples/sandboxed_server
/usr/lib64/R/library/RInside/examples/sandboxed_server/GNUmakefile
/usr/lib64/R/library/RInside/examples/sandboxed_server/client
/usr/lib64/R/library/RInside/examples/sandboxed_server/client/callback_helper.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/client/rinsideclient.cpp
/usr/lib64/R/library/RInside/examples/sandboxed_server/client/rinsideclient.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/common
/usr/lib64/R/library/RInside/examples/sandboxed_server/common/binarystream.cpp
/usr/lib64/R/library/RInside/examples/sandboxed_server/common/binarystream.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/common/constants.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/common/typeid.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes/bar.cpp
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes/bar.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes/bar_rcpp_wrapper_declarations.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes/bar_rcpp_wrapper_definitions.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes/foo.cpp
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes/foo.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes/foo_rcpp_wrapper_declarations.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/datatypes/foo_rcpp_wrapper_definitions.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/example_client.cpp
/usr/lib64/R/library/RInside/examples/sandboxed_server/example_server.cpp
/usr/lib64/R/library/RInside/examples/sandboxed_server/server
/usr/lib64/R/library/RInside/examples/sandboxed_server/server/internalfunction_clone.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/server/rinside_callbacks.h
/usr/lib64/R/library/RInside/examples/sandboxed_server/server/rinsideserver.cpp
/usr/lib64/R/library/RInside/examples/sandboxed_server/server/rinsideserver.h
/usr/lib64/R/library/RInside/examples/standard
/usr/lib64/R/library/RInside/examples/standard/GNUmakefile
/usr/lib64/R/library/RInside/examples/standard/Makefile.win
/usr/lib64/R/library/RInside/examples/standard/cmake
/usr/lib64/R/library/RInside/examples/standard/cmake/CMakeLists.txt
/usr/lib64/R/library/RInside/examples/standard/rinside_callbacks0.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_callbacks1.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_interactive0.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_module_sample0.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample0.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample1.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample10.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample11.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample12.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample13.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample14.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample15.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample16.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample17.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample2.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample3.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample4.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample5.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample6.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample7.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample8.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_sample9.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_test0.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_test1.cpp
/usr/lib64/R/library/RInside/examples/standard/rinside_test2.cpp
/usr/lib64/R/library/RInside/examples/threads
/usr/lib64/R/library/RInside/examples/threads/GNUmakefile
/usr/lib64/R/library/RInside/examples/threads/boostEx.cpp
/usr/lib64/R/library/RInside/examples/wt
/usr/lib64/R/library/RInside/examples/wt/GNUmakefile
/usr/lib64/R/library/RInside/examples/wt/cmake
/usr/lib64/R/library/RInside/examples/wt/cmake/CMakeLists.txt
/usr/lib64/R/library/RInside/examples/wt/wtdensity.cpp
/usr/lib64/R/library/RInside/examples/wt/wtdensity.css
/usr/lib64/R/library/RInside/examples/wt/wtdensity.xml
/usr/lib64/R/library/RInside/examples/wt/wtdensityPlain.cpp

References

Summary

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