Running 'testthat.R' [33s/51s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(tidyhydat)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > library(lubridate)
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:dplyr':
  
      intersect, setdiff, union
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  > 
  > test_check("tidyhydat")
  -- 1. Error: plot fails with non daily value (@test-hy-plot.R#13)  -------------
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_monthly_flows("05AA008", hydat_path = hy_test_db())
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 2. Error: hy_monthly_flows accepts single and multiple province arguments (@t
  'where' must be an environment
  Backtrace:
    1. testthat::expect_identical(...)
    5. tidyhydat::hy_monthly_flows(station_number = stns, hydat_path = hy_test_db())
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 3. Error: hy_monthly_flows accepts single and multiple province arguments (@t
  'where' must be an environment
  Backtrace:
    1. testthat::expect_true(...)
    5. tidyhydat::hy_monthly_flows(prov_terr_state_loc = "BC", hydat_path = hy_test_db())
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 4. Error: hy_monthly_flows respects Date specification (@test_hy_monthly_flow
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_monthly_flows(...)
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 5. Error: functions that accept a date argument return data when specifying o
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_monthly_flows(...)
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 6. Error: hy_monthly_levels accepts single and multiple province arguments (@
  'where' must be an environment
  Backtrace:
    1. testthat::expect_identical(...)
    5. tidyhydat::hy_monthly_levels(station_number = stns, hydat_path = hy_test_db())
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 7. Error: hy_monthly_levels accepts single and multiple province arguments (@
  'where' must be an environment
  Backtrace:
    1. testthat::expect_true(...)
    5. tidyhydat::hy_monthly_levels(prov_terr_state_loc = "BC", hydat_path = hy_test_db())
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 8. Error: hy_monthly_levels respects Date specification (@test_hy_monthly_lev
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_monthly_levels(...)
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 9. Error: functions that accept a date argument return data when specifying o
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_monthly_levels(...)
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 10. Error: hy_sed_monthly_loads accepts single and multiple province argument
  'where' must be an environment
  Backtrace:
    1. testthat::expect_identical(...)
    5. tidyhydat::hy_sed_monthly_loads(station_number = stns, hydat_path = hy_test_db())
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 11. Error: hy_sed_monthly_loads accepts single and multiple province argument
  'where' must be an environment
  Backtrace:
    1. testthat::expect_true(...)
    5. tidyhydat::hy_sed_monthly_loads(prov_terr_state_loc = "BC", hydat_path = hy_test_db())
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 12. Error: hy_sed_monthly_loads respects Date specification (@test_hy_sed_mon
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_sed_monthly_loads(...)
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 13. Error: functions that accept a date argument return data when specifying 
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_sed_monthly_loads(...)
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 14. Error: hy_sed_monthly_suscon accepts single and multiple province argumen
  'where' must be an environment
  Backtrace:
    1. testthat::expect_identical(...)
    5. tidyhydat::hy_sed_monthly_suscon(station_number = stns, hydat_path = hy_test_db())
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 15. Error: hy_sed_monthly_suscon accepts single and multiple province argumen
  'where' must be an environment
  Backtrace:
    1. testthat::expect_true(...)
    5. tidyhydat::hy_sed_monthly_suscon(...)
    6. tidyr::separate(...)
    7. ellipsis::check_dots_used()
    9. ellipsis:::exit_handler(action)
   10. base::bquote(...)
  
  -- 16. Error: hy_sed_monthly_suscon respects Date specification (@test_hy_sed_mo
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_sed_monthly_suscon(...)
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 17. Error: functions that accept a date argument return data when specifying 
  'where' must be an environment
  Backtrace:
   1. tidyhydat::hy_sed_monthly_suscon(...)
   2. tidyr::separate(...)
   3. ellipsis::check_dots_used()
   5. ellipsis:::exit_handler(action)
   6. base::bquote(...)
  
  -- 18. Error: throw an error when plotting a lake level station with Flow specif
  'where' must be an environment
  Backtrace:
   1. tidyhydat::realtime_dd("08KH011")
   2. base::lapply(station_number, single_realtime_station)
   3. tidyhydat:::FUN(X[[i]], ...)
   4. tidyhydat:::realtime_tidy_data(output, PROV)
   5. tidyr::separate(...)
   6. ellipsis::check_dots_used()
   8. ellipsis:::exit_handler(action)
   9. base::bquote(...)
  
  == testthat results  ===========================================================
  [ OK: 168 | SKIPPED: 17 | WARNINGS: 0 | FAILED: 18 ]
  1. Error: plot fails with non daily value (@test-hy-plot.R#13) 
  2. Error: hy_monthly_flows accepts single and multiple province arguments (@test_hy_monthly_flows.R#6) 
  3. Error: hy_monthly_flows accepts single and multiple province arguments (@test_hy_monthly_flows.R#23) 
  4. Error: hy_monthly_flows respects Date specification (@test_hy_monthly_flows.R#52) 
  5. Error: functions that accept a date argument return data when specifying only the start date or end date (@test_hy_monthly_flows.R#65) 
  6. Error: hy_monthly_levels accepts single and multiple province arguments (@test_hy_monthly_levels.R#6) 
  7. Error: hy_monthly_levels accepts single and multiple province arguments (@test_hy_monthly_levels.R#23) 
  8. Error: hy_monthly_levels respects Date specification (@test_hy_monthly_levels.R#52) 
  9. Error: functions that accept a date argument return data when specifying only the start date or end date (@test_hy_monthly_levels.R#65) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted