Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [3s/50s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(oxcgrt)
  > 
  > test_check("oxcgrt")
  ── Warning (test-get_data.R:19:1): (code run outside of `test_that()`) ─────────
  json has more than one value. Using first value only.
  
  ── ERROR (test-get_data.R:22:3): warnings are released ─────────────────────────
  Error: Problem with `mutate()` input `policyvalue`.
  ✖ object 'policyvalue' not found
  ℹ Input `policyvalue` is `as.integer(policyvalue)`.
  Backtrace:
       █
    1. ├─testthat::expect_warning(json_action %>% get_data()) test-get_data.R:22:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─json_action %>% get_data()
    7. ├─oxcgrt::get_data(.)
    8. │ └─`%>%`(...)
    9. ├─dplyr::mutate(., policyvalue = as.integer(policyvalue), notes = as.character(notes))
   10. ├─dplyr:::mutate.data.frame(...)
   11. │ └─dplyr:::mutate_cols(.data, ...)
   12. │   ├─base::withCallingHandlers(...)
   13. │   └─mask$eval_all_mutate(dots[[i]])
   14. └─base::.handleSimpleError(...)
   15.   └─dplyr:::h(simpleError(msg, call))
  
  ── Warning (test-get_data.R:29:1): (code run outside of `test_that()`) ─────────
  json has more than one value. Using first value only.
  
  ── Warning (test-get_data.R:29:1): (code run outside of `test_that()`) ─────────
  `mutate_()` is deprecated as of dplyr 0.7.0.
  Please use `mutate()` instead.
  See vignette('programming') for more help
  This warning is displayed once every 8 hours.
  Call `lifecycle::last_warnings()` to see where this warning was generated.
  
  ── ERROR (test-get_data.R:29:1): (code run outside of `test_that()`) ───────────
  Error: no applicable method for 'mutate_' applied to an object of class "NULL"
  Backtrace:
       █
    1. ├─json_action %>% get_data_action() test-get_data.R:29:0
    2. ├─oxcgrt::get_data_action(.)
    3. │ └─`%>%`(...)
    4. ├─tibble::tibble(.)
    5. │ └─tibble:::tibble_quos(xs[!is.null], .rows, .name_repair)
    6. │   └─rlang::eval_tidy(xs[[j]], mask)
    7. ├─dplyr::relocate(., date_value, .before = country_code)
    8. ├─dplyr::relocate(., country_code, .before = country_name)
    9. ├─dplyr::relocate(., country_name, .before = policy_type_code)
   10. ├─dplyr::mutate(...)
   11. └─dplyr:::mutate.default(...)
   12.   └─dplyr::mutate_(.data, .dots = compat_as_lazy_dots(...))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  Warning (test-get_data.R:19:1): (code run outside of `test_that()`)
  ERROR (test-get_data.R:22:3): warnings are released
  Warning (test-get_data.R:29:1): (code run outside of `test_that()`)
  Warning (test-get_data.R:29:1): (code run outside of `test_that()`)
  ERROR (test-get_data.R:29:1): (code run outside of `test_that()`)
  
  [ FAIL 2 | WARN 3 | SKIP 0 | PASS 22 ]
  Error: Test failures
  Execution halted