Skip to content

sdmTMB

Spatial and Spatiotemporal SPDE-Based GLMMs with 'TMB'

v1.0.0 · Jan 24, 2026 · GPL-3

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

CRAN

5.4K

Last 30 days

1622nd

18.1K

Last 90 days

76.4K

Last year

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

r2u CRAN

48

Last 30 days

181

Last 90 days

603

Last year

Trend: -31.4% (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 27, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 24, 2026
ERROR r-release-windows-x86_64

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
WARNING r-oldrel-windows-x86_64

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
ERROR r-devel-linux-x86_64-debian-gcc

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
ERROR r-release-windows-x86_64

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
ERROR r-release-windows-x86_64

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
NOTE r-oldrel-macos-arm64

installed package size

installed size is 93.2Mb
  sub-directories of 1Mb or more:
    libs  91.8Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 95.8Mb
  sub-directories of 1Mb or more:
    libs  94.3Mb
NOTE r-oldrel-windows-x86_64

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
NOTE r-oldrel-macos-arm64

installed package size

installed size is 93.2Mb
  sub-directories of 1Mb or more:
    libs  91.8Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 95.8Mb
  sub-directories of 1Mb or more:
    libs  94.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.5Mb
  sub-directories of 1Mb or more:
    libs   4.1Mb

Reverse Dependencies (4)

imports

Dependency Network

Dependencies Reverse dependencies assertthat abind cli fmesher fishMod generics lifecycle Matrix mgcv mvtnorm nlme reformulas rlang TMB tinyVAST clustTMB ggeffects insight sdmTMB

Version History

15 tracked
new 1.0.0 Mar 10, 2026
updated 1.0.0 ← 0.8.1 diff Jan 23, 2026
updated 0.8.1 ← 0.8.0 diff Jan 7, 2026
updated 0.8.0 ← 0.7.4 diff Nov 25, 2025
updated 0.7.4 ← 0.7.2 diff Jul 28, 2025
updated 0.7.2 ← 0.7.0 diff Jun 18, 2025
updated 0.7.0 ← 0.6.0 diff Mar 31, 2025
updated 0.6.0 ← 0.5.0 diff May 29, 2024
updated 0.5.0 ← 0.4.3 diff Apr 2, 2024
updated 0.4.3 ← 0.4.2 diff Feb 28, 2024
updated 0.4.2 ← 0.4.1 diff Jan 17, 2024
updated 0.4.1 ← 0.4.0 diff Nov 2, 2023
updated 0.4.0 ← 0.3.0 diff Oct 19, 2023
updated 0.3.0 ← 0.2.1 diff Jan 27, 2023
new 0.2.1 Jan 9, 2023