Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(intensegRid)
  > 
  > test_check("intensegRid")
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-generationmix.R:6:5'): get_mix works ───────────────────────────
  Error: API did not return json
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-generationmix.R:5:3
   2. │ └─cassette$call_block(...)
   3. └─intensegRid::get_mix() at test-generationmix.R:6:5
   4.   └─intensegRid:::get_data(call)
  ── Error ('test-intensity.R:6:5'): get_british_ci() works ──────────────────────
  Error: API did not return json
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-intensity.R:5:3
   2. │ └─cassette$call_block(...)
   3. └─intensegRid::get_british_ci() at test-intensity.R:6:5
   4.   └─intensegRid:::get_data(call)
  ── Error ('test-intensity.R:29:5'): get_national_ci() works ────────────────────
  Error: API did not return json
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-intensity.R:28:3
   2. │ └─cassette$call_block(...)
   3. └─intensegRid::get_national_ci() at test-intensity.R:29:5
   4.   └─intensegRid:::get_data(call)
  ── Error ('test-intensity.R:70:5'): get_regional_ci() works ────────────────────
  Error: API did not return json
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-intensity.R:69:3
   2. │ └─cassette$call_block(...)
   3. └─intensegRid::get_regional_ci(13) at test-intensity.R:70:5
   4.   └─intensegRid:::get_data(call)
  ── Error ('test-intensity.R:96:5'): get_postcode_ci() works ────────────────────
  Error: API did not return json
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-intensity.R:95:3
   2. │ └─cassette$call_block(...)
   3. └─intensegRid::get_postcode_ci(postcode = "EN2") at test-intensity.R:96:5
   4.   └─intensegRid:::get_data(call)
  ── Error ('test-other.R:4:5'): get_factors() works ─────────────────────────────
  Error: API did not return json
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-other.R:3:3
   2. │ └─cassette$call_block(...)
   3. └─intensegRid::get_factors() at test-other.R:4:5
   4.   └─intensegRid:::get_data(url)
  ── Error ('test-other.R:21:5'): get_stats() works ──────────────────────────────
  Error: API did not return json
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-other.R:20:3
   2. │ └─cassette$call_block(...)
   3. └─intensegRid::get_stats(start, end) at test-other.R:21:5
   4.   └─intensegRid:::get_data(call)
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted