write_gtfs: Write a GTFS Feed

View source: R/write_gtfs.R

write_gtfsR Documentation

Write a GTFS Feed

Description

Exports a GTFS object to a zip archive. Internal 'dates_services' data are omitted, GTFS dates use 'YYYYMMDD', and spatial stops/shapes are converted back to standard text-table columns.

Usage

write_gtfs(gtfs, zipfile = NULL, ...)

Arguments

gtfs

A GTFS object.

zipfile

Optional output '.zip' path. When omitted in an interactive session, a save-file window opens. The '.zip' extension is added when needed.

...

Additional arguments passed to the format-specific writer.

Value

The normalized output path, invisibly.

See Also

[GTFSwizard::read_gtfs()]

Examples

path <- tempfile(fileext = ".zip")
write_gtfs(for_rail_gtfs, path)


GTFSwizard documentation built on Nov. 18, 2026, 1:07 a.m.