Skip to content

Fast and Memory Efficient Spatial Interaction Models

0packages depend
5.6Kdownloads / year
54.3%test coverage
11/13flavors OK

Overview

About

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.

Changes in 0.2

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

CRAN checks
2NOTE11OK
Check messages
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.

CRAN check page ↗

Slowest check: 7.0 min · r-release-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.2
READMEYes · 479 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 0.2Citation fileYes · software entry onlyWebsiteYes · pkgdown
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

5.6K
CRAN downloads in the past year
Rank #10,044 · ~15/day · ~469/mo
Daily download trend is not available in this view yet.
31830 days
1K90 days
5.6K1 year
Compare downloads with other packages →
Also on409 r2u15 autocran

Repository

2Stars
0Forks
0Open issues
0Open PRs
0Releases
66Commits
4Commit identities
geographic-data-sciencegeographical-information-systemspatial-analysisurban-data-sciencespatial-interaction-models
66 commits · Last activity 2025-09-04 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2025-09-05 · 12026-07-07 · 2
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-09-04 · The repository has a site deploy workflow

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing cppSim adds 2 packages (2 with compiled code, 2.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB.

Depends (1)
R >= 3.6
Imports (1)
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.2 (2025)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2Latest
    2025-09-03 · current release
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cppSim version 0.2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy