Running ‘spelling.R’
  Running ‘testthat.R’ [36s/55s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(covidregionaldata)
  > source("testthat/custom_tests/mock_data.R")
  > 
  > test_check("covidregionaldata")
  ── Skip (test-get_afghan_regional_cases.R:2:3): get_afghan_regional_cases data s
  Reason: On CRAN
  
  ── Skip (test-get_afghan_regional_cases.R:11:3): get_afghan_regional_cases retur
  Reason: On CRAN
  
  ── Skip (test-get_afghan_regional_cases.R:23:3): get_afghan_regional_cases retur
  Reason: On CRAN
  
  ── Skip (test-get_belgium_regional_cases.R:2:3): get_belgium_regional_cases data
  Reason: On CRAN
  
  ── Skip (test-get_belgium_regional_cases.R:26:3): get_belgium_regional_cases ret
  Reason: On CRAN
  
  ── Skip (test-get_belgium_regional_cases.R:41:3): get_belgium_regional_cases ret
  Reason: On CRAN
  
  ── Skip (test-get_belgium_regional_cases.R:65:3): get_belgium_regional_cases ret
  Reason: On CRAN
  
  ── Skip (test-get_brazil_regional_cases.R:2:3): get_brazil_regional_cases data s
  Reason: On CRAN
  
  ── Skip (test-get_brazil_regional_cases.R:13:3): get_brazil_regional_cases retur
  Reason: On CRAN
  
  ── Skip (test-get_brazil_regional_cases.R:28:3): get_brazil_regional_cases retur
  Reason: On CRAN
  
  ── Skip (test-get_canada_regional_cases.R:2:3): get_canada_regional_cases data s
  Reason: On CRAN
  
  ── Skip (test-get_canada_regional_cases.R:13:3): get_canada_regional_cases retur
  Reason: On CRAN
  
  ── Skip (test-get_canada_regional_cases.R:24:3): get_canada_regional_cases retur
  Reason: On CRAN
  
  ── Skip (test-get_colombia_regional_cases.R:2:3): get_colombia_regional_cases da
  Reason: On CRAN
  
  ── Skip (test-get_germany_regional_cases.R:2:3): get_germany_regional_cases data
  Reason: On CRAN
  
  ── Skip (test-get_germany_regional_cases.R:14:3): get_germany_regional_cases ret
  Reason: On CRAN
  
  ── Skip (test-get_germany_regional_cases.R:29:3): get_germany_regional_cases ret
  Reason: On CRAN
  
  ── Skip (test-get_germany_regional_cases.R:51:3): get_germany_regional_cases ret
  Reason: On CRAN
  
  ── Skip (test-get_india_regional_cases.R:2:3): get_india_regional_cases data sou
  Reason: On CRAN
  
  ── Skip (test-get_india_regional_cases.R:15:3): get_india_regional_cases returns
  Reason: On CRAN
  
  ── Skip (test-get_india_regional_cases.R:26:3): get_india_regional_cases returns
  Reason: On CRAN
  
  ── Skip (test-get_interventions_data.R:2:3): get_interventions_data works as exp
  Reason: On CRAN
  
  ── Skip (test-get_italy_regional_cases.R:2:3): get_italy_regional_cases data sou
  Reason: On CRAN
  
  ── Skip (test-get_italy_regional_cases.R:13:3): get_italy_regional_cases returns
  Reason: On CRAN
  
  ── Skip (test-get_italy_regional_cases.R:25:3): get_italy_regional_cases returns
  Reason: On CRAN
  
  ── Skip (test-get_national_data.R:2:3): get_national_data returns ECDC data ────
  Reason: On CRAN
  
  ── Skip (test-get_national_data.R:13:3): get_national_data returns WHO data ────
  Reason: On CRAN
  
  ── Skip (test-get_national_data.R:25:3): get_ecdc_cases works as expected ──────
  Reason: On CRAN
  
  ── Skip (test-get_national_data.R:45:3): get_who_cases works as expected ───────
  Reason: On CRAN
  
  ── Skip (test-get_national_data.R:56:3): get_ecdc_cases returns a region for eve
  Reason: On CRAN
  
  ── Skip (test-get_national_data.R:72:3): get_who_cases returns a region for ever
  Reason: On CRAN
  
  ── Skip (test-get_regional_data.R:3:3): get_regional_data returns error if count
  Reason: On CRAN
  
  ── Skip (test-get_regional_data.R:13:3): get_regional_data returns error if tota
  Reason: On CRAN
  
  ── Skip (test-get_regional_data.R:19:3): get_regional_data returns error if tota
  Reason: On CRAN
  
  ── Skip (test-get_regional_data.R:28:3): get_regional_data returns correct time 
  Reason: On CRAN
  
  ── Skip (test-get_regional_data.R:45:3): get_regional_data returns correct time 
  Reason: On CRAN
  
  ── Skip (test-get_regional_data.R:66:3): get_regional_data returns correct total
  Reason: On CRAN
  
  ── Skip (test-get_regional_data.R:83:3): get_regional_data returns correct total
  Reason: On CRAN
  
  ── Skip (test-get_regional_data.R:106:3): get_regional_data returns correct unlo
  Reason: On CRAN
  
  ── Skip (test-get_uk_regional_cases.R:2:3): get_uk_regional_cases data source is
  Reason: On CRAN
  
  ── Skip (test-get_uk_regional_cases.R:13:3): get_uk_regional_cases returns the c
  Reason: On CRAN
  
  ── Skip (test-get_uk_regional_cases.R:26:3): get_uk_regional_cases returns corre
  Reason: On CRAN
  
  ── Skip (test-get_uk_regional_cases.R:45:3): get_uk_regional_cases returns corre
  Reason: On CRAN
  
  ── ERROR (test-get_uk_regional_cases.R:56:3): get_uk_regional_cases returns data
  Error: Problem with `mutate()` input `deaths_new`.
  ✖ object 'newDeaths28DaysByDeathDate' not found
  ℹ Input `deaths_new` is `newDeaths28DaysByDeathDate`.
  Backtrace:
       █
    1. ├─covidregionaldata:::get_uk_regional_cases_only_level_1(...) test-get_uk_regional_cases.R:56:2
    2. │ └─`%>%`(...)
    3. ├─dplyr::rename(...)
    4. ├─dplyr::mutate(...)
    5. ├─dplyr:::mutate.data.frame(...)
    6. │ └─dplyr:::mutate_cols(.data, ...)
    7. │   ├─base::withCallingHandlers(...)
    8. │   └─mask$eval_all_mutate(dots[[i]])
    9. └─base::.handleSimpleError(...)
   10.   └─dplyr:::h(simpleError(msg, call))
  
  ── Skip (test-get_us_regional_cases.R:2:3): get_us_regional_cases data source is
  Reason: On CRAN
  
  ── Skip (test-get_us_regional_cases.R:16:3): get_us_regional_cases returns corre
  Reason: On CRAN
  
  ── Skip (test-get_us_regional_cases.R:33:3): get_us_regional_cases returns corre
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (46)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-get_uk_regional_cases.R:56:3): get_uk_regional_cases returns data by date of release
  
  [ FAIL 1 | WARN 0 | SKIP 46 | PASS 22 ]
  Error: Test failures
  Execution halted