Skip to content

Commit c729ca2

Browse files
committed
delete files gtfs
1 parent 8d10888 commit c729ca2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

network.qmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,13 @@ remotes::install_github("hrbrmstr/hrbrthemes") # in 10.2025 this dependency was
172172
remotes::install_github('OPATP/GTFSwizard@main')
173173
```
174174

175+
If your `zip` contains `shapes.txt` that exist but are empty, delete that file before proceeding.
176+
175177
```{r}
176-
gtfs_noshapes = GTFSwizard::read_gtfs("original/gtfs_without_shapes.zip") # it will recrreate shapes
177-
GTFSwizard::write_gtfs("data/r5r/gtfs_with_shapes.zip") # save the result
178+
library(GTFSwizard)
179+
gtfs_noshapes = read_gtfs("original/gtfs_without_shapes.zip") # it will recrreate shapes
180+
summary(gtfs_noshapes)
181+
write_gtfs(gtfs_noshapes, "data/r5r/gtfs_with_shapes.zip") # save the result
178182
```
179183

180184
::: {.callout-warning appearance="simple"}

0 commit comments

Comments
 (0)