Skip to content

Commit

Permalink
change url in documentation
Browse files Browse the repository at this point in the history
When people run example code, they shouldn't receive an error
  • Loading branch information
polettif committed Nov 7, 2018
1 parent 6f258e6 commit d83ca76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/import.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' @importFrom dplyr %>% arrange summarise group_by inner_join
#' @examples \donttest{
#' library(dplyr)
#' u1 <- "https://developers.google.com/transit/gtfs/examples/sample-feed.zip"
#' u1 <- "https://github.com/r-transit/tidytransit/raw/master/inst/extdata/sample-feed-fixed.zip"
#' sample_gtfs <- read_gtfs(u1)
#' attach(sample_gtfs)
#' #list routes by the number of stops they have
Expand Down Expand Up @@ -80,7 +80,7 @@ read_gtfs <- function(path, local = FALSE,
#' @importFrom dplyr %>% arrange summarise group_by inner_join
#' @examples \donttest{
#' library(dplyr)
#' u1 <- "https://developers.google.com/transit/gtfs/examples/sample-feed.zip"
#' u1 <- "https://github.com/r-transit/tidytransit/raw/master/inst/extdata/sample-feed-fixed.zip"
#' sample_gtfs <- import_gtfs(u1)
#' attach(sample_gtfs)
#' #list routes by the number of stops they have
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-import-gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test_that('Downloading a zip file from a gtfs_example_url returns a file', {
skip("no internet, skipping")
}
else {
zip <- tidytransit:::download_from_url(gtfs_example_url)
zip <- tidytransit:::download_from_url(gtfs_example_url, quiet = T)

expect_true(file.exists(zip))
}
Expand Down

0 comments on commit d83ca76

Please sign in to comment.