Skip to content

INLAtools

Functionalities for the 'INLA' Package

v0.1.4 · May 4, 2026 · GPL (>= 2)

Description

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.

Downloads

CRAN

2.4K

Last 30 days

2488th

7.9K

Last 90 days

25.2K

Last year

Trend: -17.6% (30d vs prior 30d)

r2u CRAN

30

Last 30 days

215

Last 90 days

826

Last year

Trend: -65.1% (30d vs prior 30d)

autoCRAN

3

Last 7 days

10

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 6 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 5, 2026
Archived
Apr 23, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 9, 2026
ERROR r-devel-linux-x86_64-fedora-clang

whether package can be installed

Installation failed.
See ‘/data/gannet/ripley/R/packages/tests-clang/INLAtools.Rcheck/00install.out’ for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

4,446

Files

45

Compiled share

27.2%

Has compiled src

Yes

Language breakdown

R 2,302 (51.8%)C/C++/src 1,211 (27.2%)Docs 933 (21%)

API

Exported functions

26

Internal functions

23

Recent export changes

v0.1.4+12 cgeneric_Q, cgeneric_graph, cgeneric_initial +9 more  −6 cgeneric_shlib, graph, initial 3 more
v0.1.2+3 pcParamCheck, pclrange, pcrange

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

69.2%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.3

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

14

First release

2025-06-02

Latest release

2026-05-04

Avg cadence

12 days

Cold removal rate

100%

Dep drift

2

LOC over versions

v0.0.1: 3,036 LOCv0.0.2: 3,043 LOCv0.0.3: 3,482 LOCv0.0.4: 4,055 LOCv0.0.5: 4,140 LOCv0.0.6: 4,142 LOCv0.0.7: 4,354 LOCv0.0.8: 4,372 LOCv0.0.9: 4,389 LOCv0.1.0: 4,383 LOCv0.1.1: 4,412 LOCv0.1.2: 4,567 LOCv0.1.3: 4,590 LOCv0.1.4: 4,446 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (2)

depends

imports

Dependency Network

Dependencies Reverse dependencies Matrix graphpcor INLAspacetime INLAtools

Version History

16 tracked
new 0.1.4 May 4, 2026
removed 0.1.3 Apr 23, 2026
updated 0.1.3 ← 0.1.2 diff Apr 22, 2026
updated 0.1.2 ← 0.1.1 diff Apr 8, 2026
updated 0.1.1 ← 0.1.0 diff Apr 3, 2026
updated 0.1.0 ← 0.0.9 diff Mar 29, 2026
new 0.0.9 Mar 10, 2026
updated 0.0.9 ← 0.0.8 diff Feb 11, 2026
updated 0.0.8 ← 0.0.7 diff Feb 1, 2026
updated 0.0.7 ← 0.0.6 diff Jan 13, 2026
updated 0.0.6 ← 0.0.5 diff Dec 18, 2025
updated 0.0.5 ← 0.0.4 diff Nov 19, 2025
updated 0.0.4 ← 0.0.3 diff Jun 22, 2025
updated 0.0.3 ← 0.0.2 diff Jun 15, 2025
updated 0.0.2 ← 0.0.1 diff Jun 3, 2025