Skip to content

rSDI

Spatial Dispersion Index (SDI) Family of Metrics for Spatial/Geographic Networks

v0.2.2 · Aug 22, 2025 · GPL (>= 3)

Description

Spatial Dispersion Index (SDI) is a generalized measurement index, or rather a family of indices to evaluate spatial dispersion of movements/flows in a network in a problem neutral way as described in: Gencer (2023) <doi:10.1007/s12061-023-09545-8>. This package computes and optionally visualizes this index with minimal hassle.

Downloads

CRAN

533

Last 30 days

7305th

1.7K

Last 90 days

6.6K

Last year

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

r2u CRAN

0

Last 30 days

24

Last 90 days

102

Last year

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

autoCRAN

4

Last 7 days

12

Last 30 days

1

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

examples

Running examples in ‘rSDI-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plotSDI
> ### Title: plotSDI generates a plot of the network and SDI metrics on a
> ###   geographic map.
...[truncated]...
** Examples
> 
> TMSDI <- SDI(TurkiyeMigration.flows, TurkiyeMigration.nodes, variant="vuw")
> plotSDI(TMSDI, variant="vuw", circle.size.scale=1)
Error in plotSDI(TMSDI, variant = "vuw", circle.size.scale = 1) : 
  ggraph is required
Execution halted
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

for unstated dependencies in examples

Warning in file(out, "wt") :
  cannot open file '/tmp/RtmpVyofvJ/file3a2a2332d83bad/weightedSingleVertexSDI.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 Mar 10, 2026

Code intelligence has not been computed for this package yet.

Compare versions

Code

Structure

Lines of code

1,829

Files

38

Compiled share

0%

Has compiled src

No

Language breakdown

R 589 (32.2%)Tests 34 (1.9%)Docs 500 (27.3%)Vignettes 706 (38.6%)

API

Exported functions

13

Internal functions

0

Recent export changes

v0.2.1+13 SDI, SDIcomputer, dist_calc +10 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.06

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5.0

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2024-05-30

Latest release

2025-08-22

Avg cadence

449 days

Cold removal rate

Dep drift

0

LOC over versions

v0.2.1: 1,851 LOCv0.2.2: 1,829 LOC

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

Dependency Network

Dependencies Reverse dependencies igraph rSDI

Version History

3 tracked
new 0.2.2 Mar 10, 2026
updated 0.2.2 ← 0.2.1 diff Aug 22, 2025
new 0.2.1 May 29, 2024