Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 2.0.1
Date: 2026-11-05 19:18:27 UTC
SHA: 7d97095347953c4c51209ac8a8f7e49be58e88d0
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Package
Package: gtfstools
Title: General Transit Feed Specification (GTFS) Editing and Analysing
Tools
Version: 2.0.0.9000
Version: 2.0.1
Authors@R: c(
person("Daniel", "Herszenhut", , "dhersz@gmail.com", role = "aut",
comment = c(ORCID = "0000-0001-8066-1105")),
Expand Down
3 changes: 1 addition & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gtfstools (development version)
# gtfstools v2.0.1

## Bug fixes

Expand All @@ -12,7 +12,6 @@ and return correct estimates for overnight trips.
- `filter_by_weekday()` now warns when the GTFS object has no `calendar` table, instead of silently returning it unchanged. Its documentation now states that services defined only in `calendar_dates` are never related to a weekday (use `filter_by_date()` to consider them).
- `validate_gtfs()` now raises an error when `n_threads` is not a whole number, as documented, instead of passing it to the validator.


## New features

- New function `fix_overnight_times()` rewrites the times of trips that run past midnight but are written as early morning times (e.g. `"00:30:00"` instead of `"24:30:00"`), as required by the GTFS specification. `fix_gtfs()` now runs it before capping speeds and filling blank stop times, so these trips are no longer left with blank times.
Expand Down
7 changes: 4 additions & 3 deletions R/validate_gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
#' @param quiet A logical. Whether to hide informative messages. Defaults to
#' `TRUE`.
#' @param n_threads An integer. Control how many threads are used during the
#' validation. Defaults to 1. Values larger than the number of cores in the
#' running machine, or than the number of free R connections, are capped to
#' the smaller of these numbers.
#' validation. Defaults to 1. Values larger than the number of CPUs available
#' to the R session (as reported by [parallelly::availableCores()]), or than
#' the number of free R connections, are capped to the smaller of these
#' numbers.
#'
#' @return Invisibly returns the normalized path to the directory where the
#' validation results were saved to.
Expand Down
19 changes: 17 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
**This is a resubmission to fix bugs**

## R CMD check results

── R CMD check results ─────────────────────────────────────── gtfstools 2.0.0 ────
Duration: 11m 27.6s
── R CMD check results ─────────────────────────────────────────────────────────── gtfstools 2.0.1 ────
Duration: 7m 25.4s

0 errors ✔ | 0 warnings ✔ | 0 notes ✔


## Bug fixes

- gtfstools functions now accept `dt_gtfs` objects whose tables were turned into tibbles, grouped data frames or plain data frames by other packages (e.g. after `dplyr::group_by()`). With `by_reference = TRUE`, an object with any such table now raises an informative error, since the edits can't be made by reference on a converted copy: convert it first with `as_dt_gtfs()` (#130, reported by @baarthur, who also opened PR #132).
- Several functions that involved estimating trip speed and duration would
drop trips that cross midnight if GTFS input had times in 00:MM:SS, which
disrespects the GTFS standard to report times as 24:MM:SS in such cases.
This bug has been fixed. Now all functions that calculate or change durations
and speeds now fix these times using a new function `fix_overnight_times()`
and return correct estimates for overnight trips.
- `filter_by_weekday()` now warns when the GTFS object has no `calendar` table, instead of silently returning it unchanged. Its documentation now states that services defined only in `calendar_dates` are never related to a weekday (use `filter_by_date()` to consider them).
- `validate_gtfs()` now raises an error when `n_threads` is not a whole number, as documented, instead of passing it to the validator.


## Notes

- Change in package maintainer from Daniel to Rafael
Expand Down
7 changes: 4 additions & 3 deletions man/validate_gtfs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading