Skip to content

Rapid Realistic Routing with 'R5'

1packages dependsuggested by 1
15.1Kdownloads / year
91.4%test coverage
13/13flavors OK

Overview

About
Maintained by Rafael H. M. PereiraCRAN page ↗GitHub ↗Website ↗Issues ↗Declared funders: Department of Geography & Planning, University of Toronto and Ipea - Institute for Applied Economic Research

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.

Changes in 2.4.0

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

#455 and Closed #495.

  • 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

CRAN checks
13OK
Slowest check: 2.5 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 2.4.0
READMEYes · 7 wordsVignettesYes · 10 · evaluation depends on the environmentNEWSYes · 100% structured · mentions 2.4.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
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%

Downloads

15.1K
CRAN downloads in the past year
Rank #3,460 · ~41/day · ~1.3K/mo
Daily download trend is not available in this view yet.
1.3K30 days
3.1K90 days
15.1K1 year
Compare downloads with other packages →
Also on219 r2u4 autocran

Repository

ipea/r5r ↗Organization: ipea

Moved from ipeagit/r5r.

244Stars
36Forks
24Open issues
7Open PRs
21Releases
2,496Commits
22Commit identities
rtransportroutingtransport-networksr5javaroutergtfs
2,496 commits · Last activity 2026-10-19 · +1.2% stars, 30d
Responsiveness
How these are sampled
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

2025-10-15 · 2132026-10-15 · 244
PracticesBeta

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.

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)
Issue templates
Docs source (2)

GitHub Pages site last deployed 2026-10-10 · The repository has a site deploy workflow

pkgdown site last built 2026-10-10

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
Dockerfile
Automation and maintenance (1)
Dependabot
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-09-21
    Seen in the repository: .claude, .claude/agents, CLAUDE.md
    Named in .gitignore: .claude, CLAUDE.local.md
    Pull request it wrote: opened by a project member
    Commits: at least 10 crediting it in the message
Shared conventions any agent may read, so they name no particular tool.
Seen in the repository: AGENTS.md
From outside contributors
  • Claude Code
    Pull requests: 2 from outside contributors, first on 2026-09-28
Models named in its commits
  • Claude Opus 5.510 commits · Sep to Oct 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
26 external dependencies (excludes base and recommended)

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.

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

Datasets

People & History

People (11)
Author, Maintainer since 0.1.0 (2020)
Author · added in 2.0
Author · added in 2.2.0
Contributor · added in 2.4.0
Contributor · added in 2.0
Contributor · added in 2.2.0
Copyright holder, Funder · added in 0.6.0
Listed in earlier versions (2)
Ipea - Institue for Applied Economic Research
no longer listed · 0.1.0 to 0.5.0
Matthew Wigginton Conway
no longer listed · 0.3-0 to 1.1.0
Releases (21)

Pick two releases to compare their code metrics.

  • 2.4.0Latest
    record
    2026-05-20 · current release · diff ↗ ·
    added 3 exports
    check_transit_availability, get_gtfs_errors, street_network_bbox
  • R
    R 4.6.0 released · 2026-04-24
  • 2.3.0
    record
    2025-08-21 · diff ↗ ·
    added 2 exports
    arrival_travel_time_matrix, build_network
  • 2.2.0
    record
    2025-05-22 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.1.0
    record
    2025-03-08 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.0
    record
    2024-04-11 · diff ↗ ·
    added 1 export
    r5r_cache
  • 1.1.0
    record
    2023-08-08 · diff ↗ ·
    added 1 export
    isochrone
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.1
    record
    2023-03-06 · diff ↗
  • 1.0.0
    record
    2023-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 CRAN
    2022-07-06
  • 0.7.1
    record
    2022-07-06 · diff ↗
  • archivedRemoved from CRAN
    2022-07-04
    no response to request to replace 'akima' by 'interp'
  • R
    R 4.2.0 released · 2022-04-22
Show 18 earlier eventsHide 18 earlier events
  • 0.7.0
    record
    2022-02-11 · diff ↗
  • 0.6.0
    record
    2021-10-26 · diff ↗ ·
    added 1 export
    transit_network_to_sf
  • 0.5.0
    record
    2021-07-02 · diff ↗ ·
    added 2 exports
    accessibility, find_snap
  • R
    R 4.1.0 released · 2021-05-18
  • unarchivedReturned to CRAN
    2021-04-16
  • 0.4.0
    record
    2021-04-16 · diff ↗
  • archivedRemoved from CRAN
    2021-04-14
    policy violation on Internet access
  • 0.3-3
    record
    2021-03-09 · diff ↗
  • 0.3-2
    record
    2021-01-08 · diff ↗
  • 0.3-1
    record
    2021-01-07 · diff ↗
  • 0.3-0
    record
    2021-01-05 · diff ↗
  • 0.2-1
    record
    2020-11-30 · diff ↗
  • unarchivedReturned to CRAN
    2020-10-20
  • 0.2-0
    record
    2020-10-20 · diff ↗
  • archivedRemoved from CRAN
    2020-10-03
    check issues were not corrected in time Installation timeouts -- as shown for ATLAS
  • 0.1-1
    record
    2020-09-25 · diff ↗
  • 0.1.0
    record
    2020-09-18
  • R
    R 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.

APA

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

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.

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