Skip to content

Commit

Permalink
rename google_transit_nyc_subway.zip to nyc_subway.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
polettif committed Oct 17, 2024
1 parent 494619e commit c63f3d9
Show file tree
Hide file tree
Showing 27 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion R/filters.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @export
#' @examples \donttest{
#' library(dplyr)
#' local_gtfs_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
#' local_gtfs_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
#' nyc <- read_gtfs(local_gtfs_path)
#' select_service_id <- filter(nyc$calendar, monday==1) %>% pull(service_id)
#' select_route_id <- sample_n(nyc$routes, 1) %>% pull(route_id)
Expand Down
6 changes: 3 additions & 3 deletions R/geo.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' \dontrun{
#' library(dplyr)
#'
#' nyc_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
#' nyc_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
#' nyc <- read_gtfs(nyc_path)
#'
#' nyc$stops %>%
Expand Down Expand Up @@ -103,7 +103,7 @@ prep_dist_mtrx = function(dist_list) {
#' \dontrun{
#' library(dplyr)
#'
#' nyc_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
#' nyc_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
#' nyc <- read_gtfs(nyc_path)
#'
#' stop_group_distances(nyc$stops)
Expand Down Expand Up @@ -185,7 +185,7 @@ stop_group_distances = function(gtfs_stops, by = "stop_name") {
#' @importFrom stats kmeans
#' @examples \donttest{
#' library(dplyr)
#' nyc_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
#' nyc_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
#' nyc <- read_gtfs(nyc_path)
#' nyc <- cluster_stops(nyc)
#'
Expand Down
2 changes: 1 addition & 1 deletion R/io.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' @seealso [validate_gtfs()], [write_gtfs()]
#'
#' @examples \dontrun{
#' local_gtfs_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
#' local_gtfs_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
#' gtfs <- read_gtfs(local_gtfs_path)
#' summary(gtfs)
#'
Expand Down
2 changes: 1 addition & 1 deletion R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#'
#' @examples \donttest{
#' local_gtfs_path <- system.file("extdata",
#' "google_transit_nyc_subway.zip",
#' "nyc_subway.zip",
#' package = "tidytransit")
#' nyc <- read_gtfs(local_gtfs_path)
#' plot(nyc)
Expand Down
2 changes: 1 addition & 1 deletion R/raptor.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#' @import data.table
#' @export
#' @examples \donttest{
#' nyc_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
#' nyc_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
#' nyc <- read_gtfs(nyc_path)
#'
#' # you can use initial walk times to different stops in walking distance (arbitrary example values)
Expand Down
2 changes: 1 addition & 1 deletion R/summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples \dontrun{
#' path = system.file("extdata",
#' "google_transit_nyc_subway.zip",
#' "nyc_subway.zip",
#' package = "tidytransit")
#'
#' g = read_gtfs(path)
Expand Down
2 changes: 1 addition & 1 deletion R/travel_times.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#'
#' # 2) separate filtering and travel time calculation for a more granular analysis
#' # stop_names in this feed are not restricted to an area, create clusters of stops to fix
#' nyc_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
#' nyc_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
#' nyc <- read_gtfs(nyc_path)
#' nyc <- cluster_stops(nyc, group_col = "stop_name", cluster_colname = "stop_name")
#'
Expand Down
2 changes: 1 addition & 1 deletion R/validate_gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#' #> # 2 more variables: validation_status <chr>, validation_details <chr>
#'
#' \dontrun{
#' local_gtfs_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
#' local_gtfs_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
#' gtfs <- read_gtfs(local_gtfs_path)
#' attr(gtfs, "validation_result")
#'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion man/cluster_stops.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/filter_stops.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/plot.tidygtfs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/print.tidygtfs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/raptor.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/read_gtfs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/stop_distances.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/stop_group_distances.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/travel_times.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/validate_gtfs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-read-gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test_that("read_gtfs() imports a local file to a list of

test_that("reading a real feed", {
skip_on_cran()
g_nyc_path = system.file("extdata", "google_transit_nyc_subway.zip",
g_nyc_path = system.file("extdata", "nyc_subway.zip",
package = "tidytransit")
gtfs_obj = read_gtfs(g_nyc_path)

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-spatial.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ test_that("stop_group_distances", {

test_that("stop_group_distances real feed", {
skip_on_cran()
g_nyc = read_gtfs(system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit"))
g_nyc = read_gtfs(system.file("extdata", "nyc_subway.zip", package = "tidytransit"))

x1 = stop_group_distances(g_nyc$stops)

Expand All @@ -170,7 +170,7 @@ test_that("stop_group_distances real feed", {
test_that("stops cluster", {
skip_on_cran()

g_nyc = read_gtfs(system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit"))
g_nyc = read_gtfs(system.file("extdata", "nyc_subway.zip", package = "tidytransit"))
g_nyc2 <- filter_feed_by_area(g_nyc, c(-74.0144, 40.7402, -73.9581, 40.7696))

x1 = cluster_stops(g_nyc2$stops)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-travel_times.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ test_that("feed without transfers", {

test_that("nyc feed", {
skip_on_cran()
nyc_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
nyc_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
nyc <- read_gtfs(nyc_path)

.child_index = which(nyc$stops$location_type == 0)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test_that("filter_feed with shapes", {

test_that("filter_feed_by_date", {
skip_on_cran()
g0 = read_gtfs(system.file("extdata", "google_transit_nyc_subway.zip",
g0 = read_gtfs(system.file("extdata", "nyc_subway.zip",
package = "tidytransit"))
g1 = filter_feed_by_date(g0, "2018-06-28")
g2 = filter_feed_by_date(g0, "2018-10-30")
Expand Down
2 changes: 1 addition & 1 deletion vignettes/frequency.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ We'll start by importing a snapshot of the NYC MTA's subway schedule, which is i
with the package when [installed](https://r-transit.github.io/tidytransit/index.html#installation).

```{r}
local_gtfs_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
local_gtfs_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
gtfs <- read_gtfs(local_gtfs_path)
```

Expand Down
2 changes: 1 addition & 1 deletion vignettes/introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ section on "Finding More GTFS Feeds" for more sources of feeds.
# nyc <- read_gtfs("http://web.mta.info/developers/data/nyct/subway/google_transit.zip")
local_gtfs_path <- system.file("extdata",
"google_transit_nyc_subway.zip",
"nyc_subway.zip",
package = "tidytransit")
nyc <- read_gtfs(local_gtfs_path)
```
Expand Down
2 changes: 1 addition & 1 deletion vignettes/servicepatterns.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ as a sample feed with tidytransit but you can read it directly from the MTA's we
that some routes and services have been removed from the feed to reduce package size.

```{r}
local_gtfs_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
local_gtfs_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
gtfs <- read_gtfs(local_gtfs_path)
# gtfs <- read_gtfs("http://web.mta.info/developers/data/nyct/subway/google_transit.zip")
```
Expand Down
2 changes: 1 addition & 1 deletion vignettes/timetable.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ We use a feed from the New York Metropolitan Transportation Authority. It is pro
sample feed with tidytransit but you can read it directly from the MTA's website.

```{r}
local_gtfs_path <- system.file("extdata", "google_transit_nyc_subway.zip", package = "tidytransit")
local_gtfs_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
gtfs <- read_gtfs(local_gtfs_path)
# gtfs <- read_gtfs("http://web.mta.info/developers/data/nyct/subway/google_transit.zip")
```
Expand Down

0 comments on commit c63f3d9

Please sign in to comment.