Spatial Analysis on Network
Overview
Perform spatial analysis on network. Implement several methods for spatial analysis on network: Network Kernel Density estimation, building of spatial matrices based on network distance ('listw' objects from 'spdep' package), K functions estimation for point pattern analysis on network, k nearest neighbours on network, reachable area calculation, and graph generation References: Okabe et al (2019) doi:10.1080/13658810802475491; Okabe et al (2012, ISBN:978-0470770818);Baddeley et al (2015, ISBN:9781482210200).
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘esc_kernel_loo_nkde.Rd’ ‘esc_kernel_loo_tnkde.Rd’ ‘esd_kernel_loo_nkde.Rd’ ‘esd_kernel_loo_tnkde.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-22
Show 4 earlier changesHide 4 earlier changes
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-04-10
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-09
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 175 (105 internal)includes a package overview page
- Examples that run
- 9%10 run in a plain check · 29 only when donttest examples are enabled (R CMD check --as-cran) · 68 hold no code
- Exported functions with examples
- 71%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 2% with a bibliography file
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- 11
- Median days to close, 50 most recently updated closed PRs
- 4
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/jeremygelb/spnetwork on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 2 practices
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.4.4.7Latest
- RR 4.5.0 released · 2025-04-11
- 0.4.4.62025-03-29 · diff ↗
- 0.4.4.52025-01-20 · diff ↗
- unarchivedReturned to CRAN2025-01-14
- 0.4.4.42025-01-14 · diff ↗ ·
removed 3 exports
build_quadtree, spatial_index, spatial_requestadded 11 exports
build_graph_cppr, gfunc_counting, gfunc_cpp2, kfunc_counting, kfunc_cpp2, kfunc_time_counting, kgfunc_counting, kgfunc_cpp2, kgfunc_time_counting, pair_dists, rev_matrix - archivedRemoved from CRAN2024-10-22issues were not corrected in time
- unarchivedReturned to CRAN2024-06-21
- 0.4.4.32024-06-21 · diff ↗
- archivedRemoved from CRAN2024-06-03issues were not corrected in time
- 0.4.42024-05-20 · diff ↗ ·
removed 2 exports
bws_tnkde_cv_likelihood_calc, bws_tnkde_cv_likelihood_calc.mcadded 7 exports
adaptive_bw_tnkde_cpp2, bw_tnkde_cv_likelihood_calc, bw_tnkde_cv_likelihood_calc.mc, calcEuclideanDistance3, lines_extremities, nkde_worker, tnkde_get_loo_values2 - RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2023-08-24
- 0.4.3.82023-08-24 · diff ↗ ·
removed 2 exports
bw_tnkde_cv_likelihood_calc, bw_tnkde_cv_likelihood_calc.mcadded 2 exports
bws_tnkde_cv_likelihood_calc, bws_tnkde_cv_likelihood_calc.mc - archivedRemoved from CRAN2023-08-15issues were not corrected in time
Show 18 earlier eventsHide 18 earlier events
- RR 4.3.0 released · 2023-04-21
- 0.4.3.72023-04-11 · diff ↗
- 0.4.3.6
- 0.4.3.2
- 0.4.3.12022-04-24 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.4.32022-04-21 · diff ↗
- unarchivedReturned to CRAN2022-04-20
- 0.4.22022-04-20 · diff ↗ ·
removed 3 exports
get_loo_values_continuous, get_loo_values_discontinuous, get_loo_values_simpleadded 21 exports
adaptive_bw_tnkde_cpp, build_quadtree, bw_cv_likelihood_calc_tkde, bw_tnkde_cv_likelihood_calc, bw_tnkde_cv_likelihood_calc.mc, continuous_tnkde_cpp_arma, continuous_tnkde_cpp_arma_sparse, discontinuous_tnkde_cpp_arma, discontinuous_tnkde_cpp_arma_sparse, gfunc_cpp, k_nt_functions, k_nt_functions.mc, kfunc_cpp, nkde_get_loo_values, spatial_request, tkde, tnkde, tnkde.mc, tnkde_get_loo_values, tnkde_worker_bw_sel, worker_adaptive_bw_tnkde - archivedRemoved from CRAN2022-03-28check problems were not corrected in time
- unarchivedReturned to CRAN2021-10-30
- 0.2.12021-10-30 · diff ↗
- archivedRemoved from CRAN2021-10-25check problems were not corrected in time
- 0.2.02021-10-09 · diff ↗ ·
added 19 exports
aggregate_points, build_graph, build_graph_directed, bw_cv_likelihood_calc, bw_cv_likelihood_calc.mc, bw_cvl_calc, bw_cvl_calc.mc, calc_isochrones, closest_points, get_loo_values_continuous, get_loo_values_discontinuous, get_loo_values_simple, lines_direction, network_knn, network_knn.mc, simplify_network, snapPointsToLines2, split_graph_components, split_lines_at_vertex - RR 4.1.0 released · 2021-05-18
- 0.1.12021-01-22 · diff ↗
- 0.1.02021-01-18
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-01-18
- Total releases
- 17 / 5 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.6
- Bundled data
- 389 KB / 6 files
- Download size
- 4.3 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("spNetwork")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/rj-2021-102.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.