Sustainable Transport Planning
Overview
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.
- Added
wt_profileparameter passthrough toroute_dodgrwithin the mainroute()function. - Made examples for
rnet_group()conditional on theigraphpackage being installed. - General documentation updates.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-15
- NOTE12 OK, 1 NOTE2026-10-14
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 90 (1 internal)includes a package overview page
- Examples that run
- 92%70 run in a plain check (2 of them under a condition) · 4 never run · 2 hold no code
- Exported functions with examples
- 94%
- Documented parameters
- 99%
- Return-value docs
- 13%
- Help pages citing references
- 1%
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/ropensci/stplanr on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2019-08-06
Show all practicesHide 2 practices
Dependencies
Installing stplanr adds 41 packages (30 with compiled code, 49 MB of source tarballs). Heaviest: BH 14 MB, sf 9.3 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.3Latest
- RR 4.5.0 released · 2025-04-11
- 1.2.22024-08-22 · diff ↗
- 1.2.12024-05-02 · diff ↗
- 1.2.0
- RR 4.4.0 released · 2024-04-24
- 1.1.2
- RR 4.3.0 released · 2023-04-21
- 1.0.22022-11-08 · diff ↗
- 1.0.12022-08-20 · diff ↗
- 1.0.02022-06-10 · diff ↗ ·
removed 34 exports
weightfield<-, SpatialLinesNetwork, api_pat, calc_catchment, calc_catchment_sum, calc_moving_catchment, calc_network_catchment, dist_google, find_network_nodes, gprojected, line2route, line2routeRetry, lineLabels, line_length, line_sample, line_segment_sf, n_sample_length, nearest_cyclestreets, nearest_google, od2line2, od_dist, overline_spatial, reproject, route_cyclestreets, route_local, route_transportapi_public, sln2points, sln_add_node, sln_clean_graph, sum_network_links and 4 more - 0.9.0
- RR 4.2.0 released · 2022-04-22
- 0.8.72022-02-01 · diff ↗
- 0.8.62021-11-26 · diff ↗
Show 51 earlier eventsHide 51 earlier events
- unarchivedReturned to CRAN2021-11-01
- 0.8.52021-11-01 · diff ↗
- archivedRemoved from CRAN2021-10-22check problems were not corrected in time
- 0.8.42021-10-12 · diff ↗
- 0.8.3
- RR 4.1.0 released · 2021-05-18
- 0.8.22021-04-06 · diff ↗
- 0.8.12021-01-08 · diff ↗ ·
added 9 exports
overline_spatial, rnet_boundary_df, rnet_boundary_points, rnet_boundary_points_lwgeom, rnet_boundary_unique, rnet_duplicated_vertices, rnet_group, route_bikecitizens, route_osrm - 0.8.0
- 0.7.22020-09-04 · diff ↗
- 0.7.12020-08-28 · diff ↗
- 0.7.02020-08-27 · diff ↗ ·
removed 6 exports
gtfs2sldf, od_aggregate, od_radiation, onewayid, route_graphhopper, sp_aggregate - 0.6.2
- 0.6.12020-06-23 · diff ↗
- 0.6.02020-05-03 · diff ↗ ·
added 7 exports
route_average_gradient, route_rolling_average, route_rolling_diff, route_rolling_gradient, route_sequential_dist, route_slope_matrix, route_slope_vector - RR 4.0.0 released · 2020-04-24
- 0.5.22020-04-06 · diff ↗
- 0.5.12020-03-01 · diff ↗ ·
removed 2 exports
crs_select_aeq, route_cyclestreetadded 1 export
route_cyclestreets - 0.5.0
- 0.4.12019-11-23 · diff ↗ ·
removed 8 exports
decode_gl, locate2spdf, nearest2spdf, nearest_osm, route_osrm, table2matrix, viaroute, viaroute2sldf - 0.4.02019-10-13 · diff ↗ ·
removed 8 exports
dl_stats19, format_stats19_ac, format_stats19_ca, format_stats19_ve, line_to_points, read_stats19_ac, read_stats19_ca, read_stats19_veadded 9 exports
line2vertices, rnet_add_node, rnet_breakup_vertices, rnet_get_nodes, route_nearest_point, route_split, route_split_id, sln_add_node, sln_clean_graph - 0.3.12019-09-17 · diff ↗
- 0.3.02019-07-30 · diff ↗ ·
added 6 exports
od_id_character, od_id_max_min, od_id_szudzik, od_oneway, od_to_odmatrix, odmatrix_to_od - 0.2.102019-05-18 · diff ↗
- 0.2.9
- RR 3.6.0 released · 2019-04-26
- 0.2.8
- 0.2.72019-01-07 · diff ↗
- 0.2.6
- 0.2.5
- 0.2.4
- RR 3.5.0 released · 2018-04-23
- 0.2.32018-03-06 · diff ↗
- 0.2.22017-12-19 · diff ↗
- 0.2.12017-11-23 · diff ↗ ·
removed 1 export
toptailadded 13 exports
%>%, geo_bb, geo_bb_matrix, geo_buffer, geo_projected, geo_select_aeq, geo_toptail, line_sample, line_to_points, n_sample_length, od_coords, route, route_osrm - 0.1.9
- 0.1.8
- RR 3.4.0 released · 2017-04-21
- 0.1.7-3
- 0.1.7-22016-12-28 · diff ↗
- 0.1.7-12016-12-26 · diff ↗
- 0.1.72016-12-23 · diff ↗ ·
added 5 exports
line2routeRetry, line_match, od_aggregate, quadrant, sp_aggregate - 0.1.6
- 0.1.52016-10-26 · diff ↗ ·
removed 2 exports
cyclestreet_pat, graphhopper_patadded 3 exports
api_pat, line_length, line_segment - 0.1.42016-08-29 · diff ↗ ·
added 10 exports
angle_diff, gprojected, line2pointsn, line_bearing, line_midpoint, od2line2, od2odf, od_dist, points2line, reproject - 0.1.22016-05-30 · diff ↗ ·
added 12 exports
bb2poly, dist_google, is_linepoint, n_vertices, nearest_cyclestreets, nearest_google, nearest_osm, od_radiation, points2flow, points2odf, route_transportapi_public, update_line_geometry - RR 3.3.0 released · 2016-05-03
- 0.1.12016-01-16 · diff ↗
- 0.1.02016-01-15 · diff ↗ ·
removed 6 exports
age_recat, age_recat2, dd_logcub, dd_loglin, dd_logsqrt, disab_recatadded 27 exports
weightfield<-, SpatialLinesNetwork, buff_geo, calc_network_catchment, crs_select_aeq, decode_gl, dl_stats19, find_network_nodes, format_stats19_ac, format_stats19_ca, format_stats19_ve, gtfs2sldf, line2points, locate2spdf, mapshape_available, nearest2spdf, read_stats19_ac, read_stats19_ca, read_stats19_ve, sum_network_routes, table2matrix, toptail, toptail_buff, toptailgs, viaroute, viaroute2sldf, weightfield - 0.0.22015-11-02
- RR 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
Cite
Cite this package
Run in R for the authors' entry:
citation("stplanr")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/rj-2018-053.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.