Functionalities for the 'INLA' Package
Overview
Contain code to work with a C struct, in short cgeneric, to define a Gaussian Markov random (GMRF) model. The cgeneric contain code to specify GMRF elements such as the graph and the precision matrix, and also the initial and prior for its parameters, useful for model inference. It can be accessed from a C program and is the recommended way to implement new GMRF models in the 'INLA' package (https://www.r-inla.org). The 'INLAtools' implement functions to evaluate each one of the model specifications from R. The implemented functionalities leverage the use of 'cgeneric' models and provide a way to debug the code as well to work with the prior for the model parameters and to sample from it. The `generic0` can be used to implement intrinsic models with the scaling as proposed in Sørbye & Rue (2014) doi:10.1016/j.spasta.2013.06.004, and the required constraints. A very useful functionality is the Kronecker product method that creates a new model from multiple cgeneric models. It also works with the rgeneric, the R version of the cgeneric intended to easy try implementation of new GMRF models. The Kronecker between two cgeneric models where each one needs a constraint, such as spatio-temporal intrinsic interaction models, the needed constraints are automatically set.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-05-05
- ERROR13 OK, 1 ERROR2026-04-09
- OK14 OK2026-03-10
Documentation
- Help pages
- 15
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 38%
- Documented parameters
- 100%
- Return-value docs
- 69%
- Help pages citing references
- 7%
Also includes 5 demo scripts (run with demo())
Downloads
Repository
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/eliaskrainski/inlatools on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing INLAtools adds no packages beyond those that come with R.
Code & Tests
People & History
Maintainer since 0.0.1 (2025)
Pick two releases to compare their code metrics.
- 0.1.5Latest
- unarchivedReturned to CRAN2026-05-04
- 0.1.42026-05-04 · diff ↗ ·
removed 6 exports
cgeneric_shlib, graph, initial, mu, prec, prioradded 12 exports
cgeneric_Q, cgeneric_graph, cgeneric_initial, cgeneric_mu, cgeneric_prior, cgeneric_shlib_path, inlaQ, rgeneric_Q, rgeneric_graph, rgeneric_initial, rgeneric_mu, rgeneric_prior - RR 4.6.0 released · 2026-04-24
- archivedRemoved from CRAN2026-04-23errors were not corrected even in re-submission
- 0.1.32026-04-22 · diff ↗
- 0.1.2
- 0.1.12026-04-03 · diff ↗
- 0.1.02026-03-29 · diff ↗
- 0.0.92026-02-12 · diff ↗
- 0.0.82026-02-02 · diff ↗
- 0.0.7
- 0.0.62025-12-19 · diff ↗
- 0.0.5
- 0.0.42025-06-23 · diff ↗ ·
added 6 exports
Sparse, cgeneric_generic0, cgeneric_iid, findGetFunction, packageCheck, upperPadding - 0.0.3
Package metadata
- First published
- 2025-06-02
- Total releases
- 15 / 1 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.3
- Download size
- 36 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("INLAtools")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.