Skip to content

smerc

Statistical Methods for Regional Counts

v1.8.4 · Oct 24, 2024 · GPL (>= 2)

Description

Implements statistical methods for analyzing the counts of areal data, with a focus on the detection of spatial clusters and clustering. The package has a heavy emphasis on spatial scan methods, which were first introduced by Kulldorff and Nagarwalla (1995) <doi:10.1002/sim.4780140809> and Kulldorff (1997) <doi:10.1080/03610929708831995>.

Downloads

CRAN

888

Last 30 days

3875th

2.5K

Last 90 days

12K

Last year

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

r2u CRAN

24

Last 30 days

117

Last 90 days

428

Last year

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

autoCRAN

4

Last 7 days

26

Last 30 days

2

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

for unstated dependencies in examples

Warning in file(out, "wt") :
  cannot open file '/tmp/RtmpbZzbKv/file23de8971dc9a07/optimal_ubpop.R': No space left on device
Error in file(out, "wt") : cannot open the connection
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 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/smerc.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 10, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/smerc.Rcheck/00install.out’ for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

26,651

Files

324

Compiled share

4.4%

Has compiled src

Yes

Language breakdown

R 9,996 (37.5%)C/C++/src 1,171 (4.4%)Tests 7,929 (29.8%)Docs 7,381 (27.7%)Vignettes 174 (0.7%)

API

Exported functions

106

Internal functions

98

Recent export changes

v1.8.2+6 eucdist, gcdist, gedist +3 more  −1 scan_sim
v1.7.2+10 elliptic.penalty, elliptic.sim.adj, noc_enn +7 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.79

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

94.4%

\dontrun example ratio

1.1%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.6

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

21

First release

2015-10-02

Latest release

2024-10-24

Avg cadence

68 days

Cold removal rate

100%

Dep drift

21

LOC over versions

v0.1.5: 2,203 LOCv0.1.6: 2,203 LOCv0.2.2: 6,891 LOCv0.4.3: 6,005 LOCv0.4.5: 6,038 LOCv1.0: 16,332 LOCv1.0.1: 16,344 LOCv1.1: 16,931 LOCv1.2: 19,229 LOCv1.3: 21,340 LOCv1.3.3: 21,345 LOCv1.3.4: 21,345 LOCv1.4: 22,546 LOCv1.4.2: 22,477 LOCv1.5: 22,546 LOCv1.5.2: 22,634 LOCv1.6: 23,405 LOCv1.7.2: 25,713 LOCv1.8.2: 26,621 LOCv1.8.3: 26,649 LOCv1.8.4: 26,651 LOC

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

Reverse Dependencies (2)

imports

Dependency Network

Dependencies Reverse dependencies pbapply Rcpp FlexScan smacpod smerc

Version History

22 tracked
new 1.8.4 Mar 10, 2026
updated 1.8.4 ← 1.8.3 diff Oct 23, 2024
updated 1.8.3 ← 1.8.2 diff Oct 9, 2023
updated 1.8.2 ← 1.7.2 diff Jul 14, 2023
updated 1.7.2 ← 1.6 diff Oct 12, 2022
updated 1.6 ← 1.5.2 diff Jan 30, 2022
updated 1.5.2 ← 1.5 diff Nov 22, 2021
updated 1.5 ← 1.4.2 diff Sep 30, 2021
updated 1.4.2 ← 1.4 diff Feb 12, 2021
updated 1.4 ← 1.3.4 diff Feb 5, 2021
updated 1.3.4 ← 1.3.3 diff Jan 15, 2021
updated 1.3.3 ← 1.3 diff Nov 13, 2020
updated 1.3 ← 1.2 diff Oct 6, 2020
updated 1.2 ← 1.1 diff May 25, 2020
updated 1.1 ← 1.0.1 diff Sep 18, 2019