Changelog
Source:NEWS.md
r5r 2.0
CRAN release: 2024-04-11
Breaking changes
- r5r uses now JDK 21 or higher (Breaking changes). Closed #350.
- r5r now uses the latest version of R5 V7.1. Closed #350
Major changes
- r5r now stores R5 Jar file at user dir using
tools::R_user_dir()
- New function
r5r_cache()
to manage the cache of the R5 Jar file. - By using the JDK 21, this version of r5r also fixed an incompatibility with MAC ARM processors. Closed #315
Minor changes
- In the
accessibility()
function, the value ofmax_trip_duration
is now capped by the max value passed to thecutoffs
parameter. Closes #342. - Updated documentation of parameter
max_walk_time
to make it clear that in walk-only trips, whenevermax_walk_time
differs frommax_trip_duration
, the lowest value is considered. Closes #353 - Updated documentation of parameter
max_bike_time
to make it clear that in bicycle-only trips, whenevermax_bike_time
differs frommax_trip_duration
, the lowest value is considered. Closes #353 - Improved documentation of parameter
suboptimal_minutes
in thedetailed_itineraries()
function. - Updated the vignette on time window to explain how this parameter behaves when used in the
detailed_itineraries()
function.
Bug Fixes - Fixed bug that prevented the use the output_dir
parameter in the detailed_itineraries(all_to_all = TRUE)
function. Closes #327 with a contribution (PR #354) from Luyu Liu. - Fixed bug that prevented detailed_itineraries
from working with frequency-based GTFS feeds. It should ONLY work with frequency-based GTFS feeds.
New contributors to r5r - Luyu Liu
r5r 1.1.0
CRAN release: 2023-08-08
Major changes
- New
isochrone()
function. Closes #123, and addresses requrests in issues #164 and #328. - New vignette about calculating / visualizing isochrones with
r5r
. - New vignette with responses to frequently asked questions (FAQ) from
r5r
users.
Minor changes
- The default value of
time_window
is not set to10
minutes in all functions to avoid weird results reported upstream in R5. Closes #342. - Removed any mention to
percentiles
parameter in theexpanded_travel_time_matrix()
because this function does not expose this parameter to users. Closes #343. - Updated vignette on calculating / visualizing accessibility with
r5r
.
r5r 1.0.1
CRAN release: 2023-03-06
Bug fixes
- Updated to R5 version 6.9. This fixed a few bugs upstream, one of which often prevented users to build a network using cropped OSM data. Closes #325.
r5r 1.0.0
CRAN release: 2023-01-27
Breaking changes
- Replaced
max_walk_dist
andmax_bike_dist
parameters withmax_walk_time
andmax_bike_time
to better align with R5 inputs. Closes #273. -
r5r
now usesR5
’s native elevation weighting for walking and cycling impedance functions. As a resultr5r
does not have raster or rgdal package dependencies anymore. Closes #243 and #233. - Parameters
breakdown
andbreakdown_stat
intravel_time_matrix()
were removed. New functionexpanded_travel_time_matrix()
should be used to retrieve detailed information of travel time matrices. -
r5r
now throws an error if users simultaneously pass more than one of the following modesc('WALK','CAR','BICYCLE')
to thetransport_mode
parameter. This is because these modes are understood as mutually exclusive. - Function
setup_r5()
no longer has aversion
parameter.
New functions
- New function
expanded_travel_time_matrix()
to calculate minute-by-minute travel times between origin destination pairs and get additional information on public transport routes, number of transfers, and total access, waiting, in-vehicle and transfer times. - New function
pareto_frontier()
to compute of travel time and monetary cost Pareto frontier. - New function
r5r_sitrep()
to generate anr5r
situation report to help debug code errors - New functions to account for monetary costs:
-
setup_fare_structure()
to setup a fare structure to calculate the monetary costs of trips -
read_fare_structure()
to read a fare structure object from a file -
write_fare_structure()
to write a fare structure object to disk
-
Major changes
- Now using R5 latest version
6.8
. - The
detailed_itineraries()
has been substantially improved. The new vesion is faster than previous ones. It also includes new parameters listed below. Closes #265.- New
time_window
parameter - New
suboptimal_minutes
parameter, which extends the search space and returns a larger number of trips beyond the fastest ones; - Support for fare calculator and new
max_fare
parameter; - Routing in frequencies GFTS, including support for Monte Carlo draws
- New
- New parameter
draws_per_minute
totravel_time_matrix()
,accessibility()
andpareto_frontier()
functions. Closes #230. - New parameter
output_dir
to all routing functions, which can be used to specify a directory in which the results should be saved as.csv
files (one file for each origin). This parameter is particularly useful when running estimates on memory-constrained settings, because writing the results to disk preventsR5
from storing them in memory. - The accessibility estimates from
accessibility()
are now of returned as doubles / classnumeric
, except when using astep
decay function. Closes #235. - The
detailed_itineraries()
function has a new parameterall_to_all
, which allows users to set whether they want to query routes between all origins to all destinations (all_to_all = TRUE
) or to query routes between the 1st origin to the 1st destination, then the 2nd origin to the 2nd destination, and so on (all_to_all = FALSE
, the default). Closes #224.
Minor changes
- Package documentation has been extensively updated and expanded.
- Improved documentation of the
cutoffs
parameter inaccessibility()
, clarifying the function only accepts up to 12 cutoff values. Closes #216. - Improved documentation of the
percentiles
parameter inaccessibility()
andtravel_time_matrix()
, clarifying these function only accepts up to 5 values. Closes #246. - r5r now downloads R5 Jar directly from Conveyal’s github, making the package more stable. Closes #226.
- All functions now use
verbose = FALSE
andprogress = FALSE
by default. - Routing functions now require users to be non-ambiguous when specifying the modes, raising errors when it cannot disambiguate them. This new behaviour replaces the old one, in which the functions could end up trying to “guess” which mode was to be used in some edge cases.
- Information on bicycle ‘level of traffic stress’ is now added to the output of
street_network_to_sf()
. Closes #251. - New columns with info on population, schools and jobs in the example data sets for Sao Paulo and Porto Alegre
Bug fixes
- Fixed bug that
transit_network_to_sf()
generated some routes with invalid geometries. Closes #256. - Fixed bug that prevented
setup_r5(path, overwrite = TRUE)
to work.
r5r 0.7.1
CRAN release: 2022-07-05
Minor change
- Replaced the akima package with interp package in r5r Suggests, as requested by CRAN.
r5r 0.7.0
CRAN release: 2022-02-11
Major changes
- From this version onwards, r5r downloads R5 JAR from github, which provides more stable connection than Ipea server.
- The number of Monte Carlo draws to perform per time window minute when calculating travel time matrices and when estimating accessibility is now set via the
r5r.montecarlo_draws
option. Defaults to 5. This would mean 300 draws in a 60 minutes time window, for example. The user may also set a custom value usingoptions(r5r.montecarlo_draws = 10L)
(in which you substitute 10L by the value you want to set).
Minor changes
- Changed
total_time
column name tocombined_time
intravel_time_matrix()
output, to avoid confusion withtravel_time
column.
r5r 0.6.0
CRAN release: 2021-10-26
Major changes
Updated R5 to version 6.4. Closes #182.
Significant performance improvements in all functions, due to a faster method for consolidating outputs. Closes #180
New function
transit_network_to_sf()
, to extract the public transport network from R5 as simple features. Closes #179New
progress
parameter in theaccessibility()
,travel_time_matrix
, anddetailed_itineraries()
functions, to show or hide the progress counter indicator. Closes #186Created new support function
java_to_dt()
and removed dependency on thejdx
package. Closes #206Reduced r5r’s internet dependency quite considerably. Internet is now only required to download the latest R5 jar if it hasn’t been downloaded before. Closes #197.
Added two new parameters
breakdown
andbreakdown_stat
to thetravel_time_matrix()
. This allows users to breakdown the travel time information by trip subcomponents (access time, waiting time, traveling time etc). It allows one to extract more information but it makes computation time slower. Closes #194
Minor changes
- New
setup_r5()
parameter,overwrite
, that forces the building of a newnetwork.dat
, even if one already exists. - Improved documentation of parameter
departure_datetime
to clarify the parameter must be set to local time. Closes #188 - Improved documentation regarding personalized LTS values. Closes #190.
- Improved documentation of
transit_network_to_sf()
regarding stops that are not snapped to road network. Closes #192. - Improved documentation of
max_walking_dist
andmax_cycling_dist
parameters. Closes #193. - Started raising an error if the CRS of origins/destinations is not WGS 84. Closes #201.
r5r 0.5.0
CRAN release: 2021-07-02
Major changes
New function
accessibility()
to calculate access to opportunities. Closes #169New function
find_snap()
to help users identify where in the street network the input of origin and destination points are snapped to. Closes 168.New parameter
max_bike_dist
added to routing and accessibility functions. Closes #174Implemented temporary solution for elevation. Closes #171. Now r5r can read Digital Elevation Model (DEM) data from raster files in
.tif
format to weight the street network for walking and cycling according to the terrain’s slopes. Ideally, we would like to see a solution that accounts for elevation implemented upstream in R5. For now, this is a temporary solution implemented within r5r.
Minor changes
The
street_network_to_sf()
now has a more clean output when the provided GTFS covers a larger area than the street network pbf. Closes #173The size of poa.zip sample GTFS data has been reduced due to CRAN policies. Closes #172.
Progress counter Implemented. Closes 150. When the
verbose
parameter is set toFALSE
, r5r prints a progress counter and eventualERROR
messages. This comes with a minor penalty for computation performance. Hence we have keptverbose
defautls toTRUE
.
Bug fixes
- Fixed bug that prevented r5r from running without internet connection. Closes #163.
r5r 0.4-0
Major changes
- Updated R5 to version 6.2. Closes #158.
- Added
max_lts
parameter todetailed_itineraries()
andtravel_time_matrix()
functions. LTS stands for Level of Traffic Stress, and allows modeling of bicycle comfort in routing analysis. Additional information can be found in Conveyal’s documentation as well as blog posts 1 and 2. Closes #160
Minor changes
- New support function
check_connection()
to check internect connection before download files from Ipea server.
r5r 0.3-3
CRAN release: 2021-03-09
Major changes
- New vignette to calculate and visualize isochrones.
- New vignette to calculate and visualize accessibility.
- Significant performance increase in
detailed_itineraries()
whenshortest_path = TRUE
. Closes #153. - Paper on the r5r package published on Findings. Closes #108.
Minor changes
-
travel_time_matrix()
anddetailed_itineraries()
now output more detailed messages in the console, whenverbose = TRUE
. This shall make debugging the package much easier. - Improved documentation of
travel_time_matrix()
. Closes #149. - Checks origins/destinations inputs to make sure they have and
id
column. Closes #154.
Bug fixes
- Fixed introductory vignette to list only files that are included in the package installation. Closes #111.
- Fixed conflict with geobr package when downloading metadata. Closed #137.
- Fixed a bug when when parsing date and time from
departure_datetime
indetailed_itineraries()
andtravel_time_matrix()
. Closes #147. - Fixed a bug in
detailed_itineraries()
that caused a crash when the shape of a route in the input GTFS is broken. Closes #145
r5r 0.3-2
CRAN release: 2021-01-08
Minor changes
- r5r does not save the medatada file in the package directory anymore, following CRAN’s policies. Closed #136.
r5r 0.3-1
CRAN release: 2021-01-07
Minor changes
- Allow for combination of bicycle and public transport. Closed #135.
- Added new parameter
mode_egress
to routing functions, so that users can explicitly set the transport mode used after egress from public transport (walk, car or bicycle). Closed #63. - Allow for using the r5r package off-line, provided the user has successfully ran
setup_r5()
before.
r5r 0.3-0
CRAN release: 2021-01-05
Major changes
- Added Conveyal’s R5 repo as a git submodule. This will help improve the long term integration between r5r and R5. Closed #105.
- Internal changes to make r5r compatible with R5 latest version 6.0.1.
Minor changes
- Added columns with population and number of schools in sample data set of Porto Alegre to allow for accessibility examples. Closed #128.
- The
percentiles
parameter in thetravel_time_matrix
function now only accepts up to 5 cut points due to changes in R5.
r5r 0.2-1
CRAN release: 2020-11-30
Minor changes
- Expanded number of routes in the sample GTFS for Porto Alegre, allowing for more complex/realistic examples.
- Fixes format of columns of the output of
travel_matrix_function
when the user setstime_window
parameter. Closes #127. - Remove repeated bus route alternatives from the output from
detailed_itineraries
- Explicitly link destination points to street network before starting. Closes #121
r5r 0.2-0
CRAN release: 2020-10-20
Major changes
- Function
travel_time_matrix
now has new parameterstime_window
andpercentiles
it now calculates travel times for multiple departure times each minute within a given time window. For now, the function automatically set the number of Monte Carlo Draws to 5 times the size oftime_window
. Closes #104 and #118
Minor changes
- Added a sample of frequency-based GTFS for Sao Paulo. Closed #116
- Improved documentation of routing functions adding more info on the routing algorithms used in R5. Closes #114
r5r v0.1-1
CRAN release: 2020-09-25
Minor changes
- Fixed issues with time zone when setting departure times
- Fixed issues to address CRAN checks
- Now r5r can be installed on R (>= 3.6)
- Appropriate hyperlinks indocumentation
- Metadata is now downloaded from https:// server
r5r 0.1-0
- Launch of r5r v0.1.0 on CRAN.
- Package website https://ipeagit.github.io/r5r/