Description
A tool for spatial/spatio-temporal modelling and prediction with large datasets. The approach models the field, and hence the covariance function, using a set of basis functions. This fixed-rank basis-function representation facilitates the modelling of big data, and the method naturally allows for non-stationary, anisotropic covariance functions. Discretisation of the spatial domain into so-called basic areal units (BAUs) facilitates the use of observations with varying support (i.e., both point-referenced and areal supports, potentially simultaneously), and prediction over arbitrary user-specified regions. `FRK` also supports inference over various manifolds, including the 2D plane and 3D sphere, and it provides helper functions to model, fit, predict, and plot with relative ease. Version 2.0.0 and above also supports the modelling of non-Gaussian data (e.g., Poisson, binomial, negative-binomial, gamma, and inverse-Gaussian) by employing a generalised linear mixed model (GLMM) framework. Zammit-Mangion and Cressie <doi:10.18637/jss.v098.i04> describe `FRK` in a Gaussian setting, and detail its use of basis functions and BAUs, while Sainsbury-Dale, Zammit-Mangion, and Cressie <doi:10.18637/jss.v108.i10> describe `FRK` in a non-Gaussian setting; two vignettes are available that summarise these papers and provide additional examples.
Downloads
658
Last 30 days
5748th
2K
Last 90 days
9.3K
Last year
Trend: -6.9% (30d vs prior 30d)
CRAN Check Status
Show all 14 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 | ERROR |
| r-devel-linux-x86_64-fedora-gcc | ERROR |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | NOTE |
| 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 details (10 non-OK)
re-building of vignette outputs
Error(s) in re-building vignettes: Warning: elapsed-time limit of 1 hours reached for sub-process --- re-building ‘FRK_intro.Rnw’ using knitr OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead. OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set). --- re-building ‘FRK_non-Gaussian.Rnw’ using knitr --- finished re-building ‘FRK_non-Gaussian.Rnw’ SUMMARY: processing the following file failed: ‘FRK_intro.Rnw’ Error: Vignette re-building failed. Execution halted
tests
Running ‘testthat.R’ [90m/86m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> ops <- options("crayon.enabled" = FALSE)
> library(testthat)
> require("covr")
Loading required package: covr
>
> test_check("FRK")
Loading required package: FRK
Attaching package: 'FRK'
The following object is masked from 'package:stats':
simulate
NOTE: In FRK >2.0 simple_kriging_fixed = FALSE by default, and hence
universal kriging is done by default. However this is only the case when
method = 'TMB'. When method = 'EM', simple kriging is done, irrespective of
what the argument simple_kriging_fixed is set to.
|
| | 0%OMP: Warning #96: Cannot form a team with 24 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_T
...[truncated]...
|======================= | 33%
|
|=============================================== | 67%
|
|======================================================================| 100%
Maximum EM iterations reached
Averaging over polygons...
NOTE: In FRK >2.0 simple_kriging_fixed = FALSE by default, and hence
universal kriging is done by default. However this is only the case when
method = 'TMB'. When method = 'EM', simple kriging is done, irrespective of
what the argument simple_kriging_fixed is set to.
|
| | 0%
re-building of vignette outputs
Error(s) in re-building vignettes: Warning: elapsed-time limit of 1 hours reached for sub-process --- re-building ‘FRK_intro.Rnw’ using knitr --- re-building ‘FRK_non-Gaussian.Rnw’ using knitr --- finished re-building ‘FRK_non-Gaussian.Rnw’ SUMMARY: processing the following file failed: ‘FRK_intro.Rnw’ Error: Vignette re-building failed. Execution halted
tests
Running ‘testthat.R’
installed package size
installed size is 104.7Mb
sub-directories of 1Mb or more:
data 4.8Mb
doc 1.9Mb
libs 96.9Mb
package dependencies
Package suggested but not available for checking: ‘dggrids’
installed package size
installed size is 106.7Mb
sub-directories of 1Mb or more:
data 5.5Mb
doc 1.9Mb
libs 98.2Mb
package dependencies
Package suggested but not available for checking: ‘dggrids’
installed package size
installed size is 20.6Mb
sub-directories of 1Mb or more:
data 4.8Mb
doc 1.9Mb
libs 12.8Mb
package dependencies
Package suggested but not available for checking: 'dggrids'
Check History
ERROR 9 OK · 3 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 10, 2026
tests
Running ‘testthat.R’ [90m/64m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> ops <- options("crayon.enabled" = FALSE)
> library(testthat)
> require("covr")
Loading required package: covr
>
> test_check("FRK")
Loadi
...[truncated]...
is done, irrespective of
what the argument simple_kriging_fixed is set to.
|
| | 0%
tests
Running ‘testthat.R’ [90m/59m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> ops <- options("crayon.enabled" = FALSE)
> library(testthat)
> require("covr")
Loading required package: covr
>
> test_check("FRK")
Loadi
...[truncated]...
is done, irrespective of
what the argument simple_kriging_fixed is set to.
|
| | 0%
package dependencies
Package suggested but not available for checking: ‘dggrids’
package dependencies
Package suggested but not available for checking: ‘dggrids’
package dependencies
Package suggested but not available for checking: 'dggrids'