Skip to content

bmstdr

Bayesian Modeling of Spatio-Temporal Data with R

v0.8.2 · Mar 31, 2025 · GPL-2

Description

Fits, validates and compares a number of Bayesian models for spatial and space time point referenced and areal unit data. Model fitting is done using several packages: 'rstan', 'INLA', 'spBayes', 'spTimer', 'spTDyn', 'CARBayes' and 'CARBayesST'. Model comparison is performed using the DIC and WAIC, and K-fold cross-validation where the user is free to select their own subset of data rows for validation. Sahu (2022) <doi:10.1201/9780429318443> describes the methods in detail.

Downloads

CRAN

482

Last 30 days

8501st

1.2K

Last 90 days

5K

Last year

Trend: +50.2% (30d vs prior 30d)

r2u CRAN

51

Last 30 days

178

Last 90 days

518

Last year

Trend: +6.3% (30d vs prior 30d)

autoCRAN

5

Last 7 days

46

Last 30 days

0

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 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

Packages required but not available:
  'CARBayes', 'CARBayesST', 'inlabru', 'ggpubr'

Packages suggested but not available for checking: 'INLA', 'ggspatial'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 24, 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’
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  7.6Mb
  sub-directories of 1Mb or more:
    libs   4.3Mb
ERROR 10 OK · 3 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/bmstdr.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 r-oldrel-windows-x86_64

installed package size

installed size is  7.6Mb
  sub-directories of 1Mb or more:
    libs   4.3Mb
NOTE 11 OK · 3 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’
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  7.6Mb
  sub-directories of 1Mb or more:
    libs   4.3Mb

Code

Structure

Lines of code

20,351

Files

121

Compiled share

18.7%

Has compiled src

Yes

Language breakdown

R 7,797 (38.3%)C/C++/src 3,804 (18.7%)Docs 3,027 (14.9%)Vignettes 5,723 (28.1%)

API

Exported functions

21

Internal functions

74

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

100%

\dontrun example ratio

16%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

100%

Unsafe pattern score

0

Dep constraint coverage

6.7%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.4.0

System requirements

1

C++ standard

C++17

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2022-04-08

Latest release

2025-03-31

Avg cadence

260 days

Cold removal rate

Dep drift

4

LOC over versions

v0.1.4: 19,924 LOCv0.2.2: 20,172 LOCv0.3.0: 20,383 LOCv0.4.1: 20,414 LOCv0.7.9: 20,589 LOCv0.8.2: 20,351 LOC

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

Dependency Network

Dependencies Reverse dependencies Rcpp spTimer ggplot2 rstan rstantools spBayes CARBayes CARBayesST spTDyn MCMCpack Rdpack mnormt inlabru ggpubr bmstdr

Version History

7 tracked
new 0.8.2 Mar 10, 2026
updated 0.8.2 ← 0.7.9 diff Mar 30, 2025
updated 0.7.9 ← 0.4.1 diff Dec 17, 2023
updated 0.4.1 ← 0.3.0 diff Mar 30, 2023
updated 0.3.0 ← 0.2.2 diff Jul 13, 2022
updated 0.2.2 ← 0.1.4 diff Jun 20, 2022
new 0.1.4 Apr 7, 2022