Rapid Realistic Routing with 'R5'
Overview
Rapid realistic routing on multimodal transport networks (walk, bike, public transport and car) using 'R5', the Rapid Realistic Routing on Real-world and Reimagined networks engine https://github.com/conveyal/r5. The package allows users to generate detailed routing analysis or calculate travel time and monetary cost matrices using seamless parallel computing on top of the R5 Java machine. While R5 is developed by Conveyal, the package r5r is independently developed by a team at the Institute for Applied Economic Research (Ipea) with contributions from collaborators. Apart from the documentation in this package, users will find additional information on R5 documentation at https://docs.conveyal.com/. Although we try to keep new releases of r5r in synchrony with R5, the development of R5 follows Conveyal's independent update process. Hence, users should confirm the R5 version implied by the Conveyal user manual (see https://docs.conveyal.com/changelog) corresponds with the R5 version that r5r depends on. This version of r5r depends on R5 v7.1.
**Major changes**
- Using new version of R5 v7.5.1. Closed #373
and #970
- The
isochrone()function has gone through major changes which substantially
improved polygon-based isochrones. The function now builds on top of a travel
time surface that uses a regular grid of points across the network (specifically
a grid of Web Mercator pixels) and then uses the marching squares algorithm to
generate the isochrone polygons. See detailed in the updated vignette. Closed
- New support function
get_gtfs_errors()to help diagnose eventual errors in
the GTFS data that prevent building the network. Closed #431 and #541.
**Minor changes**
Show all changes in 2.4.0Hide the rest of the changes in 2.4.0
- New support function
check_transit_availability()that checks the number and
proportion of public transport services from the GTFS feeds that are active on
specified dates.
- New support function
street_network_bbox()that efficiently extracts the
geographic bounding box of the transport network.
- More informative messages in case of Java error in R5. Closed #515.
- When direct routing fails the log now mentions the name of the origin and
destination points to help the user debug. Closed #519.
**Bug fixes**
- Revert back the order of origins destinations for Direct Modes. Fix implemented
in travel_time_matrix(), arrival_travel_time_matrix() and expanded_travel_time_matrix().
Closes #501.
- Reverse search optimization is now only applicable to walking. Closes #517.
- r5r now uses walking speed from request location to snapped point on the road
network. This was a fix upstream in R5. Closed #373
- Elevation data does not affect carspeeds anymore. This was a fix upstream in
R5. Closed #970
- Fixed a bug that was introduced in r5r {2.3.0} and which led to ignore elevation
when building the network. Closed #555.
Elevation data is still ignored when creating scenarios of LTS, but this is a know
bug that will throw warning messages while we work a way to fix it in a future
update.
**New contributors to r5r**
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
- NOTE11 OK, 3 NOTE2026-04-06
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-04
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 71 (49 internal)includes a package overview page
- Examples that run
- 100%24 run in a plain check (24 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Intro to r5r: Rapid Realistic Routing with R5 in R HTML
- Accessibility HTML
- Accounting for monetary costs HTML
- FAQ - Frequently Asked Questions HTML
- Isochrones HTML
- Trade-offs between travel time and monetary cost HTML
- Travel time matrices HTML
- Trip planning with detailed_itineraries() HTML
- Using custom OSM car speeds and LTS HTML
- Using the time_window parameter HTML
Downloads
Repository
Moved from ipeagit/r5r.
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 64
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
9 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/ipeagit/r5r on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-10 · The repository has a site deploy workflow
pkgdown site last built 2026-10-10
Show all practicesHide 3 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-09-21Seen in the repository: .claude, .claude/agents, CLAUDE.mdNamed in .gitignore: .claude, CLAUDE.local.mdPull request it wrote: opened by a project memberCommits: at least 10 crediting it in the message
- Claude CodePull requests: 2 from outside contributors, first on 2026-09-28
- Claude Opus 5.510 commits · Sep to Oct 2026
Dependencies
Installing r5r adds 26 packages (23 with compiled code, 30 MB of source tarballs). Heaviest: sf 9.3 MB, data.table 5.7 MB, s2 2.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2.4.0Latest2026-05-20 · current release · diff ↗ ·
added 3 exports
check_transit_availability, get_gtfs_errors, street_network_bbox - RR 4.6.0 released · 2026-04-24
- 2.3.0
- 2.2.02025-05-22 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.1.02025-03-08 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.0
- 1.1.0
- RR 4.3.0 released · 2023-04-21
- 1.0.12023-03-06 · diff ↗
- 1.0.02023-01-27 · diff ↗ ·
added 6 exports
expanded_travel_time_matrix, pareto_frontier, r5r_sitrep, read_fare_structure, setup_fare_structure, write_fare_structure - unarchivedReturned to CRAN2022-07-06
- 0.7.12022-07-06 · diff ↗
- archivedRemoved from CRAN2022-07-04no response to request to replace 'akima' by 'interp'
- RR 4.2.0 released · 2022-04-22
Show 18 earlier eventsHide 18 earlier events
- 0.7.02022-02-11 · diff ↗
- 0.6.0
- 0.5.0
- RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2021-04-16
- 0.4.02021-04-16 · diff ↗
- archivedRemoved from CRAN2021-04-14policy violation on Internet access
- 0.3-32021-03-09 · diff ↗
- 0.3-22021-01-08 · diff ↗
- 0.3-12021-01-07 · diff ↗
- 0.3-02021-01-05 · diff ↗
- 0.2-12020-11-30 · diff ↗
- unarchivedReturned to CRAN2020-10-20
- 0.2-02020-10-20 · diff ↗
- archivedRemoved from CRAN2020-10-03check issues were not corrected in time Installation timeouts -- as shown for ATLAS
- 0.1-12020-09-25 · diff ↗
- 0.1.02020-09-18
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-09-18
- Total releases
- 21 / 6 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Download size
- 3.0 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("r5r")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32866/001c.21262.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.