Skip to content

stplanr

1.2.3Package record

Sustainable Transport Planning

2packages dependsuggested by 3
16.8Kdownloads / year
8.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.2.3
  • Added wt_profile parameter passthrough to route_dodgr within the main route() function.
  • Made examples for rnet_group() conditional on the igraph package being installed.
  • General documentation updates.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-10-15
  • NOTE12 OK, 1 NOTE2026-10-14
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.3
READMEYes · 1,012 wordsVignettesYes · 7 · evaluation depends on the environmentNEWSYes · 100% structured · mentions 1.2.3Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites an R Journal article
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

16.8K
CRAN downloads in the past year
Rank #3,471 · ~46/day · ~1.4K/mo
Daily download trend is not available in this view yet.
1.3K30 days
3.1K90 days
16.8K1 year
Compare downloads with other packages →
Also on319 r2u6 autocran144 c2d4u

Repository

443Stars
68Forks
23Open issues
3Open PRs
45Releases
2,120Commits
35Commit identities
rtransportspatialrstatsr-packagepeer-reviewedtransport-planningwalking
2,120 commits · Last activity 2025-04-17 · 0% stars, 30d · Discussions: 8 posts
Responsiveness
How these are sampled
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

2025-10-06 · 4272026-08-11 · 443
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Governance and community (1)
Code of conduct
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2019-08-06

Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
29 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Suggested by 3
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (12)
Author, Maintainer since 0.0.2 (2015)
Author · added in 0.1.4
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
Reviewer · added in 0.3.1
Scott reviewed the package for rOpenSci, see https://github.com/ropensci/onboarding/issues/10
Listed in earlier versions (1)
Scott Chamberlin
no longer listed · 0.2.1 to 0.3.0
Releases (53)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.3Latest
    record
    2025-04-21 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.2
    record
    2024-08-22 · diff ↗
  • 1.2.1
    record
    2024-05-02 · diff ↗
  • 1.2.0
    record
    2024-04-26 · diff ↗ ·
    added 2 exports
    line_segment1, n_segments
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.2
    record
    2023-09-15 · diff ↗ ·
    added 5 exports
    line_cast, rnet_connected, rnet_join, rnet_merge, rnet_subset
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.2
    record
    2022-11-08 · diff ↗
  • 1.0.1
    record
    2022-08-20 · diff ↗
  • 1.0.0
    record
    2022-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
    record
    2022-05-11 · diff ↗ ·
    removed 1 export
    route_bikecitizens
    added 1 export
    line_segment_sf
  • R
    R 4.2.0 released · 2022-04-22
  • 0.8.7
    record
    2022-02-01 · diff ↗
  • 0.8.6
    record
    2021-11-26 · diff ↗
Show 51 earlier eventsHide 51 earlier events
  • unarchivedReturned to CRAN
    2021-11-01
  • 0.8.5
    record
    2021-11-01 · diff ↗
  • archivedRemoved from CRAN
    2021-10-22
    check problems were not corrected in time
  • 0.8.4
    record
    2021-10-12 · diff ↗
  • 0.8.3
    record
    2021-07-22 · diff ↗ ·
    removed 4 exports
    gclip, line_match, mapshape, mapshape_available
  • R
    R 4.1.0 released · 2021-05-18
  • 0.8.2
    record
    2021-04-06 · diff ↗
  • 0.8.1
    record
    2021-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
    record
    2020-10-28 · diff ↗ ·
    added 1 export
    line_breakup
  • 0.7.2
    record
    2020-09-04 · diff ↗
  • 0.7.1
    record
    2020-08-28 · diff ↗
  • 0.7.0
    record
    2020-08-27 · diff ↗ ·
    removed 6 exports
    gtfs2sldf, od_aggregate, od_radiation, onewayid, route_graphhopper, sp_aggregate
  • 0.6.2
    record
    2020-07-08 · diff ↗ ·
    added 1 export
    route_google
  • 0.6.1
    record
    2020-06-23 · diff ↗
  • 0.6.0
    record
    2020-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
  • R
    R 4.0.0 released · 2020-04-24
  • 0.5.2
    record
    2020-04-06 · diff ↗
  • 0.5.1
    record
    2020-03-01 · diff ↗ ·
    removed 2 exports
    crs_select_aeq, route_cyclestreet
    added 1 export
    route_cyclestreets
  • 0.5.0
    record
    2020-01-26 · diff ↗ ·
    removed 1 export
    buff_geo
  • 0.4.1
    record
    2019-11-23 · diff ↗ ·
    removed 8 exports
    decode_gl, locate2spdf, nearest2spdf, nearest_osm, route_osrm, table2matrix, viaroute, viaroute2sldf
  • 0.4.0
    record
    2019-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_ve
    added 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.1
    record
    2019-09-17 · diff ↗
  • 0.3.0
    record
    2019-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.10
    record
    2019-05-18 · diff ↗
  • 0.2.9
    record
    2019-05-10 · diff ↗ ·
    added 3 exports
    od_aggregate_from, od_aggregate_to, overline_intersection
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.8
    record
    2019-03-22 · diff ↗ ·
    added 3 exports
    od_coords2line, overline2, route_dodgr
  • 0.2.7
    record
    2019-01-07 · diff ↗
  • 0.2.6
    record
    2018-10-20 · diff ↗ ·
    added 1 export
    route_local
  • 0.2.5
    record
    2018-06-03 · diff ↗ ·
    added 2 exports
    line_via, mats2line
  • 0.2.4
    record
    2018-05-19 · diff ↗ ·
    added 1 export
    geo_length
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.3
    record
    2018-03-06 · diff ↗
  • 0.2.2
    record
    2017-12-19 · diff ↗
  • 0.2.1
    record
    2017-11-23 · diff ↗ ·
    removed 1 export
    toptail
    added 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
    record
    2017-07-12 · diff ↗ ·
    added 1 export
    geo_code
  • 0.1.8
    record
    2017-06-02 · diff ↗ ·
    added 1 export
    sum_network_links
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1.7-3
    record
    2017-01-06 · diff ↗ ·
    added 1 export
    sln2points
  • 0.1.7-2
    record
    2016-12-28 · diff ↗
  • 0.1.7-1
    record
    2016-12-26 · diff ↗
  • 0.1.7
    record
    2016-12-23 · diff ↗ ·
    added 5 exports
    line2routeRetry, line_match, od_aggregate, quadrant, sp_aggregate
  • 0.1.6
    record
    2016-11-11 · diff ↗ ·
    added 1 export
    od_id_order
  • 0.1.5
    record
    2016-10-26 · diff ↗ ·
    removed 2 exports
    cyclestreet_pat, graphhopper_pat
    added 3 exports
    api_pat, line_length, line_segment
  • 0.1.4
    record
    2016-08-29 · diff ↗ ·
    added 10 exports
    angle_diff, gprojected, line2pointsn, line_bearing, line_midpoint, od2line2, od2odf, od_dist, points2line, reproject
  • 0.1.2
    record
    2016-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
  • R
    R 3.3.0 released · 2016-05-03
  • 0.1.1
    record
    2016-01-16 · diff ↗
  • 0.1.0
    record
    2016-01-15 · diff ↗ ·
    removed 6 exports
    age_recat, age_recat2, dd_logcub, dd_loglin, dd_logsqrt, disab_recat
    added 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.2
    record
    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

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.

APA

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

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.

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