How To Install r-cran-spdl on Debian 12

Learn how to install r-cran-spdl on Debian 12 with this tutorial. r-cran-spdl is GNU R package to Wrap RcppSpdlog Functions

Introduction

In this tutorial we learn how to install r-cran-spdl on Debian 12.

What is r-cran-spdl

r-cran-spdl is:

Logging functions in ‘RcppSpdlog’ provide access to the logging functionality from the ‘spdlog’ ‘C++’ library. This package offers shorter convenience wrappers for the ‘R’ functions which match the ‘C++’ functions, namely via, say, ‘spdl::debug()’ at the debug level. The actual formatting is done by the ‘fmt::format()’ function from the ‘fmtlib’ library (that is also ‘std::format()’ in ‘C++20’ or later).

There are three methods to install r-cran-spdl on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install r-cran-spdl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install r-cran-spdl using apt-get by running the following command:

sudo apt-get -y install r-cran-spdl

Install r-cran-spdl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install r-cran-spdl using apt by running the following command:

sudo apt -y install r-cran-spdl

Install r-cran-spdl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install r-cran-spdl using aptitude by running the following command:

sudo aptitude -y install r-cran-spdl

How To Uninstall r-cran-spdl on Debian 12

To uninstall only the r-cran-spdl package we can use the following command:

sudo apt-get remove r-cran-spdl

Uninstall r-cran-spdl And Its Dependencies

To uninstall r-cran-spdl and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove r-cran-spdl

Remove r-cran-spdl Configurations and Data

To remove r-cran-spdl configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge r-cran-spdl

Remove r-cran-spdl configuration, data, and all of its dependencies

We can use the following command to remove r-cran-spdl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge r-cran-spdl

Dependencies

r-cran-spdl have the following dependencies:

References

Summary

In this tutorial we learn how to install r-cran-spdl package on Debian 12 using different package management tools: apt, apt-get and aptitude.