How To Install r-cran-tgp on Ubuntu 22.04
Introduction
In this tutorial we learn how to install r-cran-tgp
on Ubuntu 22.04.
What is r-cran-tgp
r-cran-tgp is:
Bayesian nonstationary, semiparametric nonlinear regression and design by treed Gaussian processes (GPs) with jumps to the limiting linear model (LLM). Special cases also implemented include Bayesian linear models, CART, treed linear models, stationary separable and isotropic GPs, and GP single-index models. Provides 1-d and 2-d plotting functions (with projection and slice capabilities) and tree drawing, designed for visualization of tgp-class output. Sensitivity analysis and multi-resolution models are supported. Sequential experimental design and adaptive sampling functions are also provided, including ALM, ALC, and expected improvement. The latter supports derivative-free optimization of noisy black-box functions.
There are three methods to install r-cran-tgp
on Ubuntu 22.04. 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-tgp 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-tgp
using apt-get
by running the following command:
sudo apt-get -y install r-cran-tgp
Install r-cran-tgp Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-cran-tgp
using apt
by running the following command:
sudo apt -y install r-cran-tgp
Install r-cran-tgp 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install r-cran-tgp
using aptitude
by running the following command:
sudo aptitude -y install r-cran-tgp
How To Uninstall r-cran-tgp on Ubuntu 22.04
To uninstall only the r-cran-tgp
package we can use the following command:
sudo apt-get remove r-cran-tgp
Uninstall r-cran-tgp And Its Dependencies
To uninstall r-cran-tgp
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove r-cran-tgp
Remove r-cran-tgp Configurations and Data
To remove r-cran-tgp
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge r-cran-tgp
Remove r-cran-tgp configuration, data, and all of its dependencies
We can use the following command to remove r-cran-tgp
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-tgp
References
Summary
In this tutorial we learn how to install r-cran-tgp
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.