How To Install r-cran-stanheaders on Kali Linux

In this tutorial we learn how to install r-cran-stanheaders on Kali Linux. r-cran-stanheaders is C++ Header Files for Stan for GNU R

Introduction

In this tutorial we learn how to install r-cran-stanheaders on Kali Linux.

What is r-cran-stanheaders

r-cran-stanheaders is:

The C++ header files of the Stan project are provided by this package, but it contains no R code, vignettes, or function documentation. There is a shared object containing part of the ‘CVODES’ library, but it is not accessible from R. ‘StanHeaders’ is only useful for developers who want to utilize the ‘LinkingTo’ directive of their package’s DESCRIPTION file to build on the Stan library without incurring unnecessary dependencies. The Stan project develops a probabilistic programming language that implements full or approximate Bayesian statistical inference via Markov Chain Monte Carlo or ‘variational’ methods and implements (optionally penalized) maximum likelihood estimation via optimization. The Stan library includes an advanced automatic differentiation scheme, ’templated’ statistical and linear algebra functions that can handle the automatically ‘differentiable’ scalar types (and doubles, ‘ints’, etc.), and a parser for the Stan language. The ‘rstan’ package provides user-facing R functions to parse, compile, test, estimate, and analyze Stan models.

There are three methods to install r-cran-stanheaders on Kali Linux. 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-stanheaders 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-stanheaders using apt-get by running the following command:

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

Install r-cran-stanheaders Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-stanheaders

Install r-cran-stanheaders Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install r-cran-stanheaders

How To Uninstall r-cran-stanheaders on Kali Linux

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

sudo apt-get remove r-cran-stanheaders

Uninstall r-cran-stanheaders And Its Dependencies

To uninstall r-cran-stanheaders and its dependencies that are no longer needed by Kali Linux, we can use the command below:

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

Remove r-cran-stanheaders Configurations and Data

To remove r-cran-stanheaders configuration and data from Kali Linux we can use the following command:

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

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

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

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

Dependencies

r-cran-stanheaders have the following dependencies:

References

Summary

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