Running ‘testthat.R’ [46s/115s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bikedata)
  Data for London, U.K. powered by TfL Open Data:
    Contains OS data Ⓒ Crown copyright and database rights 2016
  Data for New York City provided and owned by:
    NYC Bike Share, LLC and Jersey City Bike Share, LLC ("Bikeshare")
    see https://www.citibikenyc.com/data-sharing-policy
  Data for Washington DC (Captialbikeshare), Chiago (Divvybikes) and Boston (Hubway)
    provided and owned by Motivate International Inc.
    see https://www.capitalbikeshare.com/data-license-agreement
    and https://www.divvybikes.com/data-license-agreement
    and https://www.thehubway.com/data-license-agreement
  Nice Ride Minnesota license  https://www.niceridemn.org/data_license
  > 
  > test_check("bikedata")
  ── 1. Error: latest files (@test-db-stats.R#29)  ───────────────────────────────
  a character vector argument expected
  1: bike_latest_files(bikedb) at testthat/test-db-stats.R:29
  2: basename(get_bike_files(city = cities[i]))
  3: get_bike_files(city = cities[i])
  4: get_london_bike_files()
  5: getflist(nodes, type = "zip")
  6: basename(unlist(f))
  
  ── 2. Error: db stats (@test-db-stats.R#41)  ───────────────────────────────────
  a character vector argument expected
  1: bike_summary_stats(bikedb) at testthat/test-db-stats.R:41
  2: bike_latest_files(bikedb)
  3: basename(get_bike_files(city = cities[i]))
  4: get_bike_files(city = cities[i])
  5: get_london_bike_files()
  6: getflist(nodes, type = "zip")
  7: basename(unlist(f))
  
  ── 3. Failure: dl_bikedata la (@test-download-data.R#88)  ──────────────────────
  `dl_bikedata(city = "la", data_dir = tempdir(), dates = 2016)` produced unexpected messages.
  Expected match: All data files already exist
  Actual values:
  * Downloading metro-bike-share-trips-2016-q4.csv.zip
  
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 126 SKIPPED: 2 FAILED: 3
  1. Error: latest files (@test-db-stats.R#29) 
  2. Error: db stats (@test-db-stats.R#41) 
  3. Failure: dl_bikedata la (@test-download-data.R#88) 
  
  Error: testthat unit tests failed
  Execution halted