if (FALSE) {
# For general use, please set these three variables:
Sys.setenv ("gtfs_home" = "")
Sys.setenv ("gtfs_work" = "")
Sys.setenv ("gtfs_data" = "/full/path/to/gtfs.zip")
# The following illustrate use with sample data bundled with package
Sys.setenv ("gtfs_home" = "Tempelhof")
Sys.setenv ("gtfs_work" = "Alexanderplatz")
Sys.setenv ("gtfs_data" = file.path (tempdir (), "vbb.zip"))
process_gtfs_local () # If not already done
go_home (start_time = "12:00") # next available service after 12:00
go_home (3, start_time = "12:00") # Wait until third service after that
# Generally, `start_time` will not be specified, in which case `go_home` will
# return next available service from current system time, so calls will
# generally be as simple as:
go_home ()
go_home (3)
}
Run the code above in your browser using DataLab