Running 'testthat.R' [29s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(onsr)
  > 
  > test_check("onsr")
  Forbidden (HTTP 403).Forbidden (HTTP 403).Forbidden (HTTP 403).Forbidden (HTTP 403).Forbidden (HTTP 403).Forbidden (HTTP 403).Forbidden (HTTP 403).Forbidden (HTTP 403).[ FAIL 6 | WARN 0 | SKIP 2 | PASS 2 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-01-get.R:2:1'
  • TRUE (1): 'test-06-browse.R:2:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-03-code-lists.R:4:3'): spec id ───────────────────────────────
  `ons_codelist("quarter")` threw an unexpected error.
  Message: Invalid `id` see `ons_codelists()`.
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(ons_codelist("quarter"), NA) at test-03-code-lists.R:4:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─onsr::ons_codelist("quarter")
   8.   └─onsr:::assert_valid_codeid(code_id)
  ── Failure ('test-03-code-lists.R:7:3'): spec id ───────────────────────────────
  `ons_codelist_editions("quarter")` threw an unexpected error.
  Message: Invalid `id` see `ons_codelists()`.
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(ons_codelist_editions("quarter"), NA) at test-03-code-lists.R:7:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─onsr::ons_codelist_editions("quarter")
   8.   └─onsr:::assert_valid_codeid(code_id)
  ── Failure ('test-03-code-lists.R:8:3'): spec id ───────────────────────────────
  `ons_codelist_edition("quarter", "one-off")` threw an unexpected error.
  Message: Invalid `id` see `ons_codelists()`.
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-03-code-lists.R:8:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─onsr::ons_codelist_edition("quarter", "one-off")
   8.   └─onsr:::assert_valid_codeid(code_id)
  ── Error ('test-03-code-lists.R:9:3'): spec id ─────────────────────────────────
  Error: Invalid `id` see `ons_codelists()`.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-03-code-lists.R:9:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─onsr::ons_codelist_edition("quarter", "one-off2")
   8.   └─onsr:::assert_valid_codeid(code_id)
  ── Failure ('test-03-code-lists.R:15:3'): spec code ────────────────────────────
  `ons_codes(code_id = "quarter", edition = "one-off")` threw an unexpected error.
  Message: Invalid `id` see `ons_codelists()`.
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-03-code-lists.R:15:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─onsr::ons_codes(code_id = "quarter", edition = "one-off")
   8.   └─onsr:::assert_valid_codeid(code_id)
  ── Error ('test-03-code-lists.R:16:3'): spec code ──────────────────────────────
  Error: Invalid `id` see `ons_codelists()`.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-03-code-lists.R:16:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─onsr::ons_codes(code_id = "quarter", edition = "one-off2")
   8.   └─onsr:::assert_valid_codeid(code_id)
  
  [ FAIL 6 | WARN 0 | SKIP 2 | PASS 2 ]
  Error: Test failures
  Execution halted