How To Install r-cran-interp on Ubuntu 20.04
Introduction
In this tutorial we learn how to install r-cran-interp
on Ubuntu 20.04.
What is r-cran-interp
r-cran-interp is:
Bivariate data interpolation on regular and irregular grids, either linear or using splines are the main part of this package. It is intended to provide FOSS replacement functions for the ACM licensed akima::interp and tripack::tri.mesh functions. Currently the piecewise linear interpolation part of akima::interp (and also akima::interpp) is implemented in interp::interp, this corresponds to the call akima::interp(…, linear=TRUE) which is the default setting and covers most of akima::interp use cases in depending packages. A re-implementation of Akimas spline interpolation (akima::interp(…, linear=FALSE)) is currently under development and will complete this package in a later version. Estimators for partial derivatives are already available, these are a prerequisite for the spline interpolation. The basic part is currently a GPLed triangulation algorithm (sweep hull algorithm by David Sinclair) providing the starting point for the piecewise linear interpolator. As side effect this algorithm is also used to provide replacements for the basic functions of the tripack package which also suffer from the ACM restrictions. All functions are designed to be backward compatible with their akima / tripack counterparts.
There are three methods to install r-cran-interp
on Ubuntu 20.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-interp 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-interp
using apt-get
by running the following command:
sudo apt-get -y install r-cran-interp
Install r-cran-interp Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-cran-interp
using apt
by running the following command:
sudo apt -y install r-cran-interp
Install r-cran-interp 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-interp
using aptitude
by running the following command:
sudo aptitude -y install r-cran-interp
How To Uninstall r-cran-interp on Ubuntu 20.04
To uninstall only the r-cran-interp
package we can use the following command:
sudo apt-get remove r-cran-interp
Uninstall r-cran-interp And Its Dependencies
To uninstall r-cran-interp
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove r-cran-interp
Remove r-cran-interp Configurations and Data
To remove r-cran-interp
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge r-cran-interp
Remove r-cran-interp configuration, data, and all of its dependencies
We can use the following command to remove r-cran-interp
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-interp
References
Summary
In this tutorial we learn how to install r-cran-interp
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.