Skip to content

stplanr

1.2.3

Sustainable Transport Planning

4packages depend
23.5Kdownloads / year
8.7%test coverage
13/13checks pass

Overview

About
Maintained by Robin LovelaceFirst published 2015-11-0253 releasesCRAN page ↗GitHub ↗

Tools for transport planning with an emphasis on spatial transport data and non-motorized modes. The package was originally developed to support the 'Propensity to Cycle Tool', a publicly available strategic cycle network planning tool (Lovelace et al. 2017) doi:10.5198/jtlu.2016.862, but has since been extended to support public transport routing and accessibility analysis (Moreno-Monroy et al. 2017) doi:10.1016/j.jtrangeo.2017.08.012 and routing with locally hosted routing engines such as 'OSRM' (Lowans et al. 2023) doi:10.1016/j.enconman.2023.117337. The main functions are for creating and manipulating geographic "desire lines" from origin-destination (OD) data (building on the 'od' package); calculating routes on the transport network locally and via interfaces to routing services such as https://cyclestreets.net/ (Desjardins et al. 2021) doi:10.1007/s11116-021-10197-1; and calculating route segment attributes such as bearing. The package implements the 'travel flow aggregration' method described in Morgan and Lovelace (2020) doi:10.1177/2399808320942779 and the 'OD jittering' method described in Lovelace et al. (2022) doi:10.32866/001c.33873. Further information on the package's aim and scope can be found in the vignettes and in a paper in the R Journal (Lovelace and Ellison 2018) doi:10.32614/RJ-2018-053, and in a paper outlining the landscape of open source software for geographic methods in transport planning (Lovelace, 2021) doi:10.1007/s10109-020-00342-2.

Install

Health

CRAN checks
13OK
Slowest check: 3.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.01
8.7%
Coverage · measured lines
99%
Documentation · exports
16
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,012 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
93%
Documented parameters
99%
Return-value docs
13%
References docs
1%

Downloads

23.5K
CRAN downloads in the past year
Rank #3,314 · ~64/day · ~2K/mo
Daily download trend is not available in this view yet.
71130 days
3.3K90 days
23.5K1 year
Compare downloads with other packages →
Also on323 r2u18 autocran76 c2d4u

Repository

Repository
443Stars
68Forks
23Open issues
3Open PRs
45Releases
2,120Commits
35Contributors
rtransportspatialrstatsr-packagepeer-reviewedtransport-planningwalking
2,120 commits · Last activity 2025-04-28 · +0.2% stars, 30d

Stars over time

2025-07-15 · 4252026-08-11 · 443

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/ropensci/stplanr on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
29 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
4direct
0indirect

Code & Tests

Datasets

People & History

People (12)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author · added in 0.1.4
Contributors (8)
Contributor
Contributor · added in 0.1.7
Contributor · added in 0.4.0
Contributor · added in 0.2.8
Contributor · added in 1.2.0
Contributor · added in 1.2.3
Contributor
Contributor · added in 1.1.2
Reviewers (1)
Reviewer · added in 0.3.1
Listed in earlier versions (1)
no longer listed · 0.2.1 to 0.3.0
Package Timeline

53 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.3Latest
    2025-04-21 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.2
    2024-08-22 · diff ↗
  • 1.2.1
    2024-05-02 · diff ↗
  • 1.2.0
    2024-04-26 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.2
    2023-09-15 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.2
    2022-11-08 · diff ↗
  • 1.0.1
    2022-08-20 · diff ↗
  • 1.0.0
    2022-06-10 · diff ↗
  • 0.9.0
    2022-05-11 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.8.7
    2022-02-01 · diff ↗
  • 0.8.6
    2021-11-26 · diff ↗
Show 51 earlier events
  • 0.8.5
    2021-11-01 · diff ↗
  • unarchivedReturned to CRAN
    2021-11-01
  • archivedRemoved from CRAN
    2021-10-22
    check problems were not corrected in time
  • 0.8.4
    2021-10-12 · diff ↗
  • 0.8.3
    2021-07-22 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.8.2
    2021-04-06 · diff ↗
  • 0.8.1
    2021-01-08 · diff ↗
  • 0.8.0
    2020-10-28 · diff ↗
  • 0.7.2
    2020-09-04 · diff ↗
  • 0.7.1
    2020-08-28 · diff ↗
  • 0.7.0
    2020-08-27 · diff ↗
  • 0.6.2
    2020-07-08 · diff ↗
  • 0.6.1
    2020-06-23 · diff ↗
  • 0.6.0
    2020-05-03 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.5.2
    2020-04-06 · diff ↗
  • 0.5.1
    2020-03-01 · diff ↗
  • 0.5.0
    2020-01-26 · diff ↗
  • 0.4.1
    2019-11-23 · diff ↗
  • 0.4.0
    2019-10-13 · diff ↗
  • 0.3.1
    2019-09-17 · diff ↗
  • 0.3.0
    2019-07-30 · diff ↗
  • 0.2.10
    2019-05-18 · diff ↗
  • 0.2.9
    2019-05-10 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.8
    2019-03-22 · diff ↗
  • 0.2.7
    2019-01-07 · diff ↗
  • 0.2.6
    2018-10-20 · diff ↗
  • 0.2.5
    2018-06-03 · diff ↗
  • 0.2.4
    2018-05-19 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.3
    2018-03-06 · diff ↗
  • 0.2.2
    2017-12-19 · diff ↗
  • 0.2.1
    2017-11-23 · diff ↗
  • 0.1.9
    2017-07-12 · diff ↗
  • 0.1.8
    2017-06-02 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1.7-3
    2017-01-06 · diff ↗
  • 0.1.7-2
    2016-12-28 · diff ↗
  • 0.1.7-1
    2016-12-26 · diff ↗
  • 0.1.7
    2016-12-23 · diff ↗
  • 0.1.6
    2016-11-11 · diff ↗
  • 0.1.5
    2016-10-26 · diff ↗
  • 0.1.4
    2016-08-29 · diff ↗
  • 0.1.2
    2016-05-30 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 0.1.1
    2016-01-16 · diff ↗
  • 0.1.0
    2016-01-15 · diff ↗
  • 0.0.2
    2015-11-02
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2015-11-02
Total releases
53 / 11 yrs
License
MIT + file LICENSE OSI
Additional repositories
josiahparry.r-universe.dev
Minimum R
≥ 3.5.0
Bundled data
156 KB / 17 files
Download size
1.9 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("stplanr")
Lovelace, R., Bearman, N., Berkoff, N., Chamberlain, S., Ellison, R., Gilardi, A., Morgan, M., Padgham, M., Parry, J., Petersen, M., Rowlingson, B., & Wang, Z. (2025). stplanr: Sustainable Transport Planning (Version 1.2.3) [Computer software]. https://doi.org/10.32614/CRAN.package.stplanr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 stplanr version 1.2.3 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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