Skip to content

stplanr

Sustainable Transport Planning

v1.2.3 · Apr 21, 2025 · MIT + file LICENSE

Description

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

Downloads

1.2K

Last 30 days

3434th

3.6K

Last 90 days

24K

Last year

Trend: -0.8% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (4)

suggests

Dependency Network

Dependencies Reverse dependencies curl data.table dplyr geosphere httr jsonlite lwgeom magrittr nabor od pbapply Rcpp rlang sf sfheaders agricolaeplotr pct cyclestreets slopes stplanr

Version History

new 1.2.3 Mar 10, 2026
updated 1.2.3 ← 1.2.2 diff Apr 20, 2025
updated 1.2.2 ← 1.2.1 diff Aug 21, 2024
updated 1.2.1 ← 1.2.0 diff May 1, 2024
updated 1.2.0 ← 1.1.2 diff Apr 25, 2024
updated 1.1.2 ← 1.0.2 diff Sep 14, 2023
updated 1.0.2 ← 1.0.1 diff Nov 7, 2022
updated 1.0.1 ← 1.0.0 diff Aug 19, 2022
updated 1.0.0 ← 0.9.0 diff Jun 9, 2022
updated 0.9.0 ← 0.8.7 diff May 10, 2022
updated 0.8.7 ← 0.8.6 diff Jan 31, 2022
updated 0.8.6 ← 0.8.5 diff Nov 25, 2021
updated 0.8.5 ← 0.8.4 diff Oct 31, 2021
updated 0.8.4 ← 0.8.3 diff Oct 11, 2021
updated 0.8.3 ← 0.8.2 diff Jul 21, 2021
updated 0.8.2 ← 0.8.1 diff Apr 5, 2021
updated 0.8.1 ← 0.8.0 diff Jan 7, 2021
updated 0.8.0 ← 0.7.2 diff Oct 27, 2020
updated 0.7.2 ← 0.7.1 diff Sep 3, 2020
updated 0.7.1 ← 0.7.0 diff Aug 27, 2020