Skip to content

Commit

Permalink
fix #114
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Jan 31, 2024
1 parent 6665b14 commit d6d0abf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gtfsrouter
Title: Routing with 'GTFS' (General Transit Feed Specification) Data
Version: 0.1.2.003
Version: 0.1.2.004
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
person("Marcin", "Stepniak", , "[email protected]", role = "aut",
Expand Down
7 changes: 3 additions & 4 deletions R/transfers.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ gtfs_transfer_table <- function (gtfs,
min_transfer_time = ceiling (transfer_times)
)

index <- which (!duplicated (transfers [, c (
"from_stop_id",
"to_stop_id"
)]))
# See #114: data.table::duplicated currently segfaults (Jan 2024):
ft <- data.frame (transfers [, c ("from_stop_id", "to_stop_id")])
index <- which (!duplicated (ft))
transfers <- transfers [index, ]

# Those transfers only include times, but these may then correspond to
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/UrbanAnalyst/gtfsrouter",
"issueTracker": "https://github.com/UrbanAnalyst/gtfsrouter/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.2.003",
"version": "0.1.2.004",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit d6d0abf

Please sign in to comment.