Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gbfs)
  > 
  > test_check("gbfs")
  -- 1. Error: dynamic feeds work (@test-dynamic-feeds.R#8)  ---------------------
  Could not resolve host: raw.githubusercontent.com
  Backtrace:
    1. gbfs::get_station_status("portland")
    2. gbfs:::get_gbfs_dataset_(city, directory, file, output, feed = "station_status")
    3. gbfs:::city_to_url(city, feed)
    7. gbfs::get_gbfs_cities()
    8. readr::read_csv(...)
    9. readr:::read_delimited(...)
   10. readr:::datasource_connection(file, skip, skip_empty_rows, comment)
   11. readr:::read_connection(path)
   13. base::open.connection(con, "rb")
  
  -- 2. Error: file saving and overwriting works (@test-dynamic-feeds.R#22)  -----
  Could not resolve host: raw.githubusercontent.com
  Backtrace:
    1. gbfs::get_station_status("portland", paste0(dir, "/test"))
    2. gbfs:::get_gbfs_dataset_(city, directory, file, output, feed = "station_status")
    3. gbfs:::city_to_url(city, feed)
    7. gbfs::get_gbfs_cities()
    8. readr::read_csv(...)
    9. readr:::read_delimited(...)
   10. readr:::datasource_connection(file, skip, skip_empty_rows, comment)
   11. readr:::read_connection(path)
   13. base::open.connection(con, "rb")
  
  -- 3. Error: row binding checks work (@test-dynamic-feeds.R#37)  ---------------
  Could not resolve host: raw.githubusercontent.com
  Backtrace:
    1. gbfs::get_station_status("portland", dir, output = "both")
    2. gbfs:::get_gbfs_dataset_(city, directory, file, output, feed = "station_status")
    3. gbfs:::city_to_url(city, feed)
    7. gbfs::get_gbfs_cities()
    8. readr::read_csv(...)
    9. readr:::read_delimited(...)
   10. readr:::datasource_connection(file, skip, skip_empty_rows, comment)
   11. readr:::read_connection(path)
   13. base::open.connection(con, "rb")
  
  -- 4. Error: static feeds work (@test-static-feeds.R#8)  -----------------------
  Could not resolve host: raw.githubusercontent.com
  Backtrace:
    1. gbfs::get_station_information("portland")
    2. gbfs:::get_gbfs_dataset_(city, directory, file, output, feed = "station_information")
    3. gbfs:::city_to_url(city, feed)
    7. gbfs::get_gbfs_cities()
    8. readr::read_csv(...)
    9. readr:::read_delimited(...)
   10. readr:::datasource_connection(file, skip, skip_empty_rows, comment)
   11. readr:::read_connection(path)
   13. base::open.connection(con, "rb")
  
  -- 5. Failure: argument checking works (@test-utils.R#31)  ---------------------
  `city_to_url(city_ = "wldojglkwefpoimf", feed_ = "gbfs")` threw an error with unexpected message.
  Expected match: "No supported cities matched"
  Actual message: "Could not resolve host: raw.githubusercontent.com"
  Backtrace:
    1. testthat::expect_error(...)
    6. gbfs:::city_to_url(city_ = "wldojglkwefpoimf", feed_ = "gbfs")
   10. gbfs::get_gbfs_cities()
   11. readr::read_csv(...)
   12. readr:::read_delimited(...)
   13. readr:::datasource_connection(file, skip, skip_empty_rows, comment)
   14. readr:::read_connection(path)
   16. base::open.connection(con, "rb")
  
  -- 6. Error: argument checking works (@test-utils.R#37)  -----------------------
  Could not resolve host: raw.githubusercontent.com
  Backtrace:
    1. testthat::expect_equal(...)
    4. gbfs:::city_to_url(city_ = "portland", feed_ = "station_information")
    8. gbfs::get_gbfs_cities()
    9. readr::read_csv(...)
   10. readr:::read_delimited(...)
   11. readr:::datasource_connection(file, skip, skip_empty_rows, comment)
   12. readr:::read_connection(path)
   14. base::open.connection(con, "rb")
  
  -- 7. Error: (unknown) (@test-wrapper.R#7)  ------------------------------------
  Could not resolve host: raw.githubusercontent.com
  Backtrace:
    1. gbfs::get_gbfs("portland")
    2. gbfs:::city_to_url(city, "gbfs")
    6. gbfs::get_gbfs_cities()
    7. readr::read_csv(...)
    8. readr:::read_delimited(...)
    9. readr:::datasource_connection(file, skip, skip_empty_rows, comment)
   10. readr:::read_connection(path)
   12. base::open.connection(con, "rb")
  
  == testthat results  ===========================================================
  [ OK: 17 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: dynamic feeds work (@test-dynamic-feeds.R#8) 
  2. Error: file saving and overwriting works (@test-dynamic-feeds.R#22) 
  3. Error: row binding checks work (@test-dynamic-feeds.R#37) 
  4. Error: static feeds work (@test-static-feeds.R#8) 
  5. Failure: argument checking works (@test-utils.R#31) 
  6. Error: argument checking works (@test-utils.R#37) 
  7. Error: (unknown) (@test-wrapper.R#7) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In if (is_reference(ns, base_ns_env)) { :
    closing unused connection 7 (https://raw.githubusercontent.com/NABSA/gbfs/master/systems.csv)
  2: In if (is_reference(ns, base_ns_env)) { :
    closing unused connection 6 (https://raw.githubusercontent.com/NABSA/gbfs/master/systems.csv)
  3: In if (is_reference(ns, base_ns_env)) { :
    closing unused connection 5 (https://raw.githubusercontent.com/NABSA/gbfs/master/systems.csv)
  Execution halted