UrbanAnalyst / gtfsrouter

Routing and analysis engine for GTFS (General Transit Feed Specification) data
https://urbananalyst.github.io/gtfsrouter/
84 stars 17 forks source link

Issues with gtfs_transfer_table() when running on MacOS #97

Closed viajerus closed 1 year ago

viajerus commented 1 year ago

Hello, I have a dataset without a transfers.txt table. If I try to generate the table in my linux computer, I have no problems. But when I run the same code (using the same file) in my Apple computer, I get the following error:

Bildschirmfoto 2023-02-26 um 01 52 37

This is my code:

library(gtfsrouter)
library(sf)
library(ggplot2)
library(leaflet)

filename <- "/Users/dabanto/Downloads/gtfs.zip"

gtfs <- extract_gtfs (filename)

gtfs <- gtfs_transfer_table (gtfs, 
                             d_limit = 200, 
                             min_transfer_time = 240,
                             network = NULL, 
                             network_times = FALSE, 
                             quiet = FALSE)

Same code, same file. Am I missing something?

mpadge commented 1 year ago

Can you make sure that both versions of this package are the same? If the issue still arises, please use reprex() to generate the error and paste results here. Please also ensure your reprex code includes this line:

packageVersion("gtfsrouter")

Thanks :smiley:

viajerus commented 1 year ago

Hello, thank you for your answer. The error disappeared as soon as I installed and loaded reprex(), now I have the desired output.

mpadge commented 1 year ago

That's great!