Running ‘spelling.R’
  Running ‘testthat.R’ [35s/57s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(covidregionaldata)
  > source("testthat/custom_tests/mock_data.R")
  > 
  > test_check("covidregionaldata")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (46)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-get_uk_regional_cases.R:56:3): get_uk_regional_cases returns data by date of release ──
  Error: Can't rename columns that don't exist.
  ✖ Column `newAdmissions` doesn't exist.
  Backtrace:
       █
    1. ├─covidregionaldata:::get_uk_regional_cases_only_level_1(...) test-get_uk_regional_cases.R:56:2
    2. │ └─`%>%`(...)
    3. ├─dplyr::rename(...)
    4. └─dplyr:::rename.data.frame(...)
    5.   └─tidyselect::eval_rename(expr(c(...)), .data)
    6.     └─tidyselect:::rename_impl(...)
    7.       └─tidyselect:::eval_select_impl(...)
    8.         ├─tidyselect:::with_subscript_errors(...)
    9.         │ ├─base::tryCatch(...)
   10.         │ │ └─base:::tryCatchList(expr, classes, parentenv, handlers)
   11.         │ │   └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.         │ │     └─base:::doTryCatch(return(expr), name, parentenv, handler)
   13.         │ └─tidyselect:::instrument_base_errors(expr)
   14.         │   └─base::withCallingHandlers(...)
   15.         └─tidyselect:::vars_select_eval(...)
   16.           └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
   17.             └─tidyselect:::eval_c(expr, data_mask, context_mask)
   18.               └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
   19.                 └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
   20.                   └─tidyselect:::as_indices_sel_impl(...)
   21.                     └─tidyselect:::as_indices_impl(x, vars, strict = strict)
   22.                       └─tidyselect:::chr_as_locations(x, vars)
   23.                         └─vctrs::vec_as_location(x, n = length(vars), names = vars)
   24.                           └─(function () ...
   25.                             └─vctrs:::stop_subscript_oob(...)
   26.                               └─vctrs:::stop_subscript(...)
  
  [ FAIL 1 | WARN 0 | SKIP 46 | PASS 22 ]
  Error: Test failures
  Execution halted