Running ‘testthat.R’ [16s/30s]
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
  > 
  > test_check("bikedata")
  1. Error: dplyr read db (@test-db-stats.R#15) ----------------------------------
  The dbplyr package is required to communicate with database backends.
  1: dplyr::src_sqlite(bikedb, create = F) at testthat/test-db-stats.R:15
  2: check_dbplyr()
  3: check_pkg("dbplyr", "communicate with database backends", install = FALSE)
  4: glubort(NULL, "The {name} package is required to {reason}.", if (install) "\nPlease install it with `install.packages(\"{name}\")`")
  5: .abort(text)
  
  2. Error: bike_stations function (@test-stations.R#9) --------------------------
  The dbplyr package is required to communicate with database backends.
  1: bike_stations(bikedb) at testthat/test-stations.R:9
  2: dplyr::src_sqlite(bikedb, create = FALSE)
  3: check_dbplyr()
  4: check_pkg("dbplyr", "communicate with database backends", install = FALSE)
  5: glubort(NULL, "The {name} package is required to {reason}.", if (install) "\nPlease install it with `install.packages(\"{name}\")`")
  6: .abort(text)
  
    adding: tmp/Rtmp4arape/Divvy_Trips_sample/ (stored 0%)
    adding: tmp/Rtmp4arape/Divvy_Trips_sample/Divvy_Trips_sample.csv (deflated 79%)
    adding: tmp/Rtmp4arape/Divvy_Trips_sample/Divvy_Stations.csv (deflated 68%)
    adding: tmp/Rtmp4arape/201604-hubway-tripdata.csv (deflated 84%)
    adding: tmp/Rtmp4arape/2017-Q1-Trips-History-Data.csv (deflated 78%)
    adding: tmp/Rtmp4arape/la_metro_gbfs_trips_Q1_2017.csv (deflated 85%)
    adding: tmp/Rtmp4arape/01aJourneyDataExtract10Jan16-23Jan16.csv (deflated 74%)
    adding: tmp/Rtmp4arape/201612-citibike-tripdata.csv (deflated 74%)
  3. Error: write and store data (@test-store-data.R#39) -------------------------
  The dbplyr package is required to communicate with database backends.
  1: expect_silent(n <- store_bikedata(data_dir = tempdir(), bikedb = bikedb, quiet = TRUE)) at testthat/test-store-data.R:39
  2: evaluate_promise(object)
  3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: store_bikedata(data_dir = tempdir(), bikedb = bikedb, quiet = TRUE)
  7: bike_unzip_files(data_dir, bikedb, ci)
  8: get_new_datafiles(bikedb, flist_zip)
  9: dplyr::src_sqlite(bikedb, create = FALSE)
  10: check_dbplyr()
  11: check_pkg("dbplyr", "communicate with database backends", install = FALSE)
  12: glubort(NULL, "The {name} package is required to {reason}.", if (install) "\nPlease install it with `install.packages(\"{name}\")`")
  13: .abort(text)
  
  4. Error: stations from downloaded data (@test-store-data.R#50) ----------------
  The dbplyr package is required to communicate with database backends.
  1: bike_stations(bikedb) at testthat/test-store-data.R:50
  2: dplyr::src_sqlite(bikedb, create = FALSE)
  3: check_dbplyr()
  4: check_pkg("dbplyr", "communicate with database backends", install = FALSE)
  5: glubort(NULL, "The {name} package is required to {reason}.", if (install) "\nPlease install it with `install.packages(\"{name}\")`")
  6: .abort(text)
  
  5. Failure: tripmat-demography (@test-tripmat.R#139) ---------------------------
  tm <- bike_tripmat(bikedb = bikedb, city = "ny", member = 1) produced warnings.
  
  
  testthat results ================================================================
  OK: 134 SKIPPED: 0 FAILED: 5
  1. Error: dplyr read db (@test-db-stats.R#15) 
  2. Error: bike_stations function (@test-stations.R#9) 
  3. Error: write and store data (@test-store-data.R#39) 
  4. Error: stations from downloaded data (@test-store-data.R#50) 
  5. Failure: tripmat-demography (@test-tripmat.R#139) 
  
  Error: testthat unit tests failed
  Execution halted