Package: r5r 2.4.0

r5r: Rapid Realistic Routing with 'R5'

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.

Authors:Marcus Saraiva [aut], Rafael H. M. Pereira [aut, cre], Daniel Herszenhut [aut], Alex Magnus [aut], Matthew Wigginton Bhagat-Conway [aut], Carlos Kaue Vieira Braga [ctb], Luyu Liu [ctb], Egor Kotov [ctb], Daniel Snow [ctb], Ipea - Institute for Applied Economic Research [cph, fnd], Department of Geography & Planning, University of Toronto [fnd]

r5r_2.4.0.tar.gz
r5r_2.4.0.zip(r-4.7)r5r_2.4.0.zip(r-4.6)r5r_2.4.0.zip(r-4.5)
r5r_2.4.0.tgz(r-4.6-any)r5r_2.4.0.tgz(r-4.5-any)
r5r_2.4.0.tar.gz(r-4.7-any)r5r_2.4.0.tar.gz(r-4.6-any)
r5r_2.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
r5r/json (API)

# Install 'r5r' in R:
install.packages('r5r', repos = c('https://rafapereirabr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ipeagit/r5r/issues

Pkgdown/docs site:https://ipeagit.github.io

Uses libs:
  • openjdk– OpenJDK Java runtime, using Hotspot JIT

On CRAN:

Conda:

openjdk

6.37 score 1 packages 586 scripts 1.3k downloads 22 exports 29 dependencies

Last updated from:84a4b1cf1b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK170
source / vignettesOK215
linux-release-x86_64OK167
macos-release-arm64OK125
macos-oldrel-arm64OK103
windows-develOK120
windows-releaseOK110
windows-oldrelOK97
wasm-releaseOK172

Exports:accessibilityarrival_travel_time_matrixbuild_networkcheck_transit_availabilitydetailed_itinerariesdownload_r5expanded_travel_time_matrixfind_snapget_gtfs_errorsisochronepareto_frontierr5r_cacher5r_sitrepread_fare_structuresetup_fare_structuresetup_r5stop_r5street_network_bboxstreet_network_to_sftransit_network_to_sftravel_time_matrixwrite_fare_structure

Dependencies:backportscheckmateclassclassIntclicpp11data.tableDBIe1071geometriesglueisobandjsonliteKernSmoothlifecyclemagrittrMASSproxypurrrRcpprJavarlangs2sfsfheadersunitsvctrswkzip

Accessibility
1. Introduction | 2. Build routable transport network with build_network() | Increase Java memory and load libraries | 3. Accessibility: quick and easy approach | 4. Accessibility: flexible approach | 5. Map Accessibility | 5.1 Choropleth maps | 5.2 Spatial interpolation | Cleaning up after usage | References

Last update: 2026-05-20
Started: 2023-08-08

Accounting for monetary costs
1. Introduction | 1.1 Details | 2. Reprex: the public transport system of Porto Alegre | 3. Setting up the fare structure | 3.1 Global Properties | max_discounted_transfers | transfer_time_allowance | fare_cap | 3.2 Configure fares by transport mode | 3.3 Configure fares by transfers | 3.4 Routes configuration | 4. Calculating travel time and accessibiilty accounting for monetary costs | 4.1 Travel time with monetary cost | 4.2 Calculating accessibility with monetary cost | Cleaning up after usage

Last update: 2026-05-20
Started: 2023-01-27

FAQ - Frequently Asked Questions
1. Why do some trips from/to the same ID have travel times larger than zero? | 2. Is it possible to run r5r with custom modifications to street nework data? | 3. Why are the output results of time_travel_matrix() and detailed_itineraries() different? | 4. What does the ERROR "Geographic extent of street layer exceeds limit" mean? and what to do about it? | 5. Is it possible to use custom car speed data with r5r? | 6. Why do I get identical results by public transport and walking?

Last update: 2026-05-20
Started: 2023-08-08

Intro to r5r: Rapid Realistic Routing with R5 in R
1. Introduction | 2. Installation | 3. Usage | 3.1 Data requirements: | 4. Demonstration on sample data | Data | 4.1 Building routable transport network with build_network() | 4.2 Accessibility analysis | 4.3 Routing analysis | Fast many to many travel time matrix | Expanded travel time matrix with minute-by-minute estimates | Detailed itineraries | Visualize results | Cleaning up after usage

Last update: 2026-05-20
Started: 2023-01-27

Isochrones
1. Introduction | 2. Build routable transport network with build_network() | Increase Java memory and load libraries | 3. Calculating and visualizing isochrones | 3.1 Polygon-based isochrones | 3.1 Line-based isochrones | Cleaning up after usage

Last update: 2026-05-20
Started: 2023-08-08

Trade-offs between travel time and monetary cost
1. Introduction | 2. What the pareto_frontier means. | 3. Demonstration of pareto_frontier(). | 3.1 Build routable transport network with build_network() | 3.2 Set up the fare structure | 3.3 Calculating a pareto_frontier(). | Cleaning up after usage | References

Last update: 2026-05-20
Started: 2023-01-27

Travel time matrices
1. Introduction | 2. Build routable transport network with build_network() | 3. The travel_time_matrix() function | 4. The expanded_travel_time_matrix() function | 4. The arrival_travel_time_matrix() function | Cleaning up after usage | References

Last update: 2026-05-20
Started: 2023-01-27

Trip planning with detailed_itineraries()
1. Introduction | 2. Build routable transport network with build_network() | 3. Detailed info by trip segment for multiple trip alternatives | 3.1 Visualize results | 4. A few options: | 4.1 Combining orings and destinations | 4.2 Keep geometry data in the output | 5. Hack for frequency-based GTFS feeds | Cleaning up after usage

Last update: 2026-05-20
Started: 2023-01-27

Using the time_window parameter
1. Introduction | The problem | The solution | 2. How the time_window works and how to interpret the results. | 3. Demonstration of time_window. | 3.1 Build routable transport network with build_network() | 3.2 Accessibility with time_window. | 3.3 Travel time matrix with time_window. | 3.4 Expanded travel time matrix with time_window. | 3.5 Detailed itineraries with time_window. | Cleaning up after usage | References

Last update: 2026-05-20
Started: 2023-01-27

Using custom OSM car speeds and LTS
1. Introduction | 2. Changing car speeds | 2.1 Changing car speeds by OSM edge | 2.1.1 Setting different congestion levels by road hierarchy | 2.1.2 Applying the same speed factor to all roads | Extra tip: | 2.2 Changing car speeds with a spatial polygon | 3. Changing cycling LTS values | 3.1 Changing LTS by OSM edge | 3.2. Changing LTS with a spatial polygon | Cleaning up after usage

Last update: 2025-08-21
Started: 2025-08-21

Readme and manuals