Description
Kriging Models using the 'libKriging' Library.
Description
Interface to 'libKriging' 'C++' library <https://github.com/libKriging> that should provide most standard Kriging / Gaussian process regression features (like in 'DiceKriging', 'kergp' or 'RobustGaSP' packages). 'libKriging' relies on Armadillo linear algebra library (Apache 2 license) by Conrad Sanderson, 'lbfgsb_cpp' is a 'C++' port around 'lbfgsb' library (BSD-3 license) by Ciyou Zhu, Richard Byrd, Jorge Nocedal and Jose Luis Morales used for hyperparameters optimization, and HDF5 features coming from HDF Group (see HDF5_LICENSE file) possibly provided by Rhdf5lib by Mike Smith (Artistic-2.0 license).
README.md
This repository is just a wrapper to emulate a "standard" R package from https://github.com/libKriging/bindings/R/rlibkriging content, so you can install it just using:
install.packages('devtools')
devtools::install_github("libKriging/rlibkriging")
The stable version is available from CRAN :
install.packages('rlibkriging')
Requirements
c++
,cmake
andgfortran
, should be installed using:- Linux/OSX:
brew/apt/yum/... install cpp cmake gfortran
- Windows: install Rtools (see https://cran.r-project.org/bin/windows/Rtools/) Note:
- R>=4.2 & Rtools>=42 are required for this 'devtools::install_github'
- for older R/Rtools, refer to manual install: https://github.com/libKriging/libKriging#compilation-for-linuxmacwindows-using-r-toolchain
- Linux/OSX:
HDF5
, should be installed using:- R (recommended) thanks to Rhdf5lib:
install.packages("BiocManager"); BiocManager::install("Rhdf5lib")
- or directly with system install:
- OSX:
brew install hdf5
- Linux with apt (Debian/Ubuntu/...):
apt install libhdf5-dev
- Linux with yum (RedHat/CentOS/...):
yum install hdf5-devel
- Windows: HDF5 pre-compiled, available at https://github.com/mannau/h5-libwin.
- OSX:
- R (recommended) thanks to Rhdf5lib:
Note: this repository mainly contains modified Makefiles, inspired by https://github.com/astamm/nloptr wrapper.
CRAN
When submitting to CRAN, ./tools/setup.sh
should be run before R CMD build rlibkriging
to fit CRAN policy.