Package: cppSim 0.2

Ivann Schlosser

cppSim: Fast and Memory Efficient Spatial Interaction Models

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>.

Authors:Ivann Schlosser [aut, cre]

cppSim_0.2.tar.gz
cppSim_0.2.tar.gz(r-4.7-arm64)cppSim_0.2.tar.gz(r-4.7-x86_64)cppSim_0.2.tar.gz(r-4.6-arm64)cppSim_0.2.tar.gz(r-4.6-x86_64)
cppSim_0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
cppSim/json (API)
NEWS

# Install 'cppSim' in R:
install.packages('cppSim', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ischlo/cppsim/issues

Pkgdown/docs site:https://ischlo.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

openblascppopenmp

3.36 score 23 scripts 492 downloads 3 exports 2 dependencies

Last updated from:38843159a2. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK160
linux-devel-x86_64OK157
source / vignettesOK318
linux-release-arm64OK151
linux-release-x86_64OK156
wasm-releaseOK140

Exports:run_modelrun_model_singlesimulation

Dependencies:RcppRcppArmadillo

Getting started

Rendered fromgetting_started_2.Rmdusingknitr::rmarkdownon May 31 2026.

Last update: 2025-09-03
Started: 2025-09-03

Gravity model

Rendered fromgravity_model.Rmdusingknitr::rmarkdownon May 31 2026.

Last update: 2025-09-03
Started: 2025-09-03