sdmTMB
Spatial and Spatiotemporal SPDE-Based GLMMs with 'TMB'
Description
Implements spatial and spatiotemporal GLMMs (Generalized Linear Mixed Effect Models) using 'TMB', 'fmesher', and the SPDE (Stochastic Partial Differential Equation) Gaussian Markov random field approximation to Gaussian random fields. One common application is for spatially explicit species distribution models (SDMs). See Anderson et al. (2025) <doi:10.18637/jss.v115.i02>.
Downloads
5.4K
Last 30 days
1622nd
18.1K
Last 90 days
76.4K
Last year
Trend: -21.5% (30d vs prior 30d)
48
Last 30 days
181
Last 90 days
603
Last year
Trend: -31.4% (30d vs prior 30d)
CRAN Check Status
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 27, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 24, 2026
tests
Running 'testthat.R' [49s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> options(Matrix.warnDeprecatedCoerce = 2)
>
> library(testthat)
> library(sdmTMB)
>
> test_check("sdmTMB")
Starting 2 test processes.
> tes
...[truncated]...
└─base::lapply(...)
15. └─testthat (local) FUN(X[[i]], ...)
16. └─private$handle_error(msg, i)
17. └─cli::cli_abort(...)
18. └─rlang::abort(...)
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 19, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 17, 2026
for unstated dependencies in ‘tests’
Warning: unable to access index for repository https://bioconductor.org/packages/3.22/bioc/src/contrib: cannot open URL 'https://bioconductor.org/packages/3.22/bioc/src/contrib/PACKAGES' Warning: unable to access index for repository https://biocon ...[truncated]... 2/data/annotation/src/contrib/PACKAGES' Warning: unable to access index for repository https://bioconductor.org/packages/3.22/data/experiment/src/contrib: cannot open URL 'https://bioconductor.org/packages/3.22/data/experiment/src/contrib/PACKAGES'
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 7, 2026
examples
Running examples in ‘sdmTMB-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: set_delta_model
> ### Title: Set delta model for 'ggeffects::ggpredict()'
> ### Aliases: set_delta_mode
...[truncated]...
the connection
Calls: withAutoprint ... print -> print.sdmTMB -> print_footer -> sink -> file
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
cAIC 4.742 0.113 6.363
sdmTMB 3.439 0.039 5.225
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 20, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 17, 2026
tests
Running 'testthat.R' [48s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> options(Matrix.warnDeprecatedCoerce = 2)
>
> library(testthat)
> library(sdmTMB)
>
> test_check("sdmTMB")
Starting 2 test processes.
> tes
...[truncated]...
└─base::lapply(...)
15. └─testthat (local) FUN(X[[i]], ...)
16. └─private$handle_error(msg, i)
17. └─cli::cli_abort(...)
18. └─rlang::abort(...)
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 28, 2026
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 24, 2026
tests
Running 'testthat.R' [43s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> options(Matrix.warnDeprecatedCoerce = 2)
>
> library(testthat)
> library(sdmTMB)
>
> test_check("sdmTMB")
Starting 2 test processes.
> tes
...[truncated]...
└─base::lapply(...)
15. └─testthat (local) FUN(X[[i]], ...)
16. └─private$handle_error(msg, i)
17. └─cli::cli_abort(...)
18. └─rlang::abort(...)
Execution halted
installed package size
installed size is 93.2Mb
sub-directories of 1Mb or more:
libs 91.8Mb
installed package size
installed size is 95.8Mb
sub-directories of 1Mb or more:
libs 94.3Mb
installed package size
installed size is 5.5Mb
sub-directories of 1Mb or more:
libs 4.1Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
installed package size
installed size is 93.2Mb
sub-directories of 1Mb or more:
libs 91.8Mb
installed package size
installed size is 95.8Mb
sub-directories of 1Mb or more:
libs 94.3Mb
installed package size
installed size is 5.5Mb
sub-directories of 1Mb or more:
libs 4.1Mb