Skip to content

MetricGraph

Random Fields on Metric Graphs

v1.6.0 · May 6, 2026 · GPL (>= 2)

Description

Facilitates creation and manipulation of metric graphs, such as street or river networks. Further facilitates operations and visualizations of data on metric graphs, and the creation of a large class of random fields and stochastic partial differential equations on such spaces. These random fields can be used for simulation, prediction and inference. In particular, linear mixed effects models including random field components can be fitted to data based on computationally efficient sparse matrix representations. Interfaces to the R packages 'INLA' and 'inlabru' are also provided, which facilitate working with Bayesian statistical models on metric graphs. The main references for the methods are Bolin, Simas and Wallin (2024) <doi:10.3150/23-BEJ1647>, Bolin, Kovacs, Kumar and Simas (2023) <doi:10.1090/mcom/3929> and Bolin, Simas and Wallin (2023) <doi:10.48550/arXiv.2304.03190> and <doi:10.48550/arXiv.2304.10372>.

Downloads

CRAN

339

Last 30 days

11585th

1.7K

Last 90 days

10.9K

Last year

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

r2u CRAN

50

Last 30 days

130

Last 90 days

450

Last year

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

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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘rSPDE’

Packages suggested but not available for checking:
  'INLA', 'inlabru', 'plotly', 'mapview', 'fmesher'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 11 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘INLA’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘INLA’
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/MetricGraph.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘INLA’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘INLA’
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘INLA’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘INLA’

Reverse Dependencies (2)

suggests

Dependency Network

Dependencies Reverse dependencies RANN ggplot2 igraph sf (>= 1.0-0) rSPDE Matrix Rcpp (>= 1.0.5) R6 lifecycle sp dplyr tidyr magrittr broom zoo +5 more dependencies ngme2 rSPDE MetricGraph

Version History

9 tracked
updated 1.6.0 ← 1.5.0 diff May 6, 2026
new 1.5.0 Mar 10, 2026
updated 1.5.0 ← 1.4.1 diff May 18, 2025
updated 1.4.1 ← 1.4.0 diff Mar 1, 2025
updated 1.4.0 ← 1.3.0 diff Dec 12, 2024
updated 1.3.0 ← 1.2.0 diff Feb 26, 2024
updated 1.2.0 ← 1.1.2 diff Nov 6, 2023
updated 1.1.2 ← 1.1.1 diff Jul 3, 2023
new 1.1.1 May 31, 2023