Fast and Memory Efficient Spatial Interaction Models
Overview
Building on top of the 'RcppArmadillo' linear algebra functionalities to do fast spatial interaction models in the context of urban analytics, geography, transport modelling. It uses the Newton root search algorithm to determine the optimal cost exponent and can run country level models with thousands of origins and destinations. It aims at implementing an easy approach based on matrices, that can originate from various routing and processing steps earlier in an workflow. Currently, the simplest form of production, destination and doubly constrained models are implemented. Schlosser et al. (2023) doi:10.48550/arXiv.2309.02112.
The main update of this version is the integration of the armadillo library to the package to facilitate dependencies on the user side.
A vignette now introduces the minimal workflow using cppSim, another one goes through the basics of spatial interaction models with a simple R implementation.
A soon to be published one will cover a case study with network and routing steps from scratch.
From NEWS.md in the release
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘run_model_cpp.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 10
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/ischlo/cppsim on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-09-04 · The repository has a site deploy workflow
Dependencies
Installing cppSim adds 2 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- 0.2Latest2025-09-03 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-09-03
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Bundled data
- 2.8 MB / 4 files
- Download size
- 3.0 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("cppSim")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.5281/zenodo.14367756.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.