Running ‘testthat.R’ [4s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(obr)
  > 
  > test_check("obr")
  i Downloading 'policy_measures_database.xlsx' from OBR...
  > Waiting 2s for retry backoff
  > Waiting 4s for retry backoff
  > Waiting 8s for retry backoff
  Saving _problems/test-policy-measures-12.R
  Removed 0 cached files.
  [ FAIL 1 | WARN 1 | SKIP 50 | PASS 152 ]
  
  ══ Skipped tests (50) ══════════════════════════════════════════════════════════
  • On CRAN (50): 'test-compare.R:16:3', 'test-compare.R:42:3',
    'test-compare.R:62:3', 'test-compare.R:87:3', 'test-compare.R:98:3',
    'test-compare.R:107:3', 'test-compare.R:118:3', 'test-efo-table.R:39:3',
    'test-efo-table.R:51:3', 'test-efo-table.R:63:3', 'test-efo-table.R:76:3',
    'test-efo-table.R:87:3', 'test-efo-table.R:99:3', 'test-efo-table.R:109:3',
    'test-efo-table.R:118:3', 'test-efo-table.R:129:3', 'test-efo-table.R:140:3',
    'test-efo-table.R:149:3', 'test-efo-table.R:161:3', 'test-efo.R:24:3',
    'test-efo.R:46:3', 'test-efo.R:57:3', 'test-efo.R:76:3', 'test-efo.R:97:3',
    'test-efo.R:111:3', 'test-efo.R:127:3', 'test-forecast-panel.R:20:3',
    'test-forecast-revisions.R:7:3', 'test-forecast-revisions.R:33:3',
    'test-forecasts.R:23:3', 'test-forecasts.R:42:3', 'test-forecasts.R:53:3',
    'test-forecasts.R:67:3', 'test-policy-measures.R:18:3',
    'test-policy-measures.R:36:3', 'test-policy-measures.R:44:3',
    'test-policy-measures.R:57:3', 'test-public-finances.R:6:3',
    'test-public-finances.R:24:3', 'test-public-finances.R:37:3',
    'test-public-finances.R:50:3', 'test-public-finances.R:66:3',
    'test-public-finances.R:80:3', 'test-public-finances.R:91:3',
    'test-vintages.R:103:3', 'test-welfare.R:6:3', 'test-welfare.R:25:3',
    'test-welfare.R:33:3', 'test-welfare.R:47:3', 'test-welfare.R:66:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-policy-measures.R:11:3'): get_policy_measures() errors on bad search/since ──
  Error: Failed to download <https://obr.uk/download/policy-measures-database-march-2025/>.
  x HTTP 403 Forbidden.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-policy-measures.R:11:3
    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. └─obr::get_policy_measures(search = c("a", "b"))
    8.   └─obr:::pmd_source(refresh)
    9.     └─obr:::obr_get_xlsx(...)
   10.       └─obr:::obr_fetch(url, filename, refresh = refresh)
   11.         └─base::tryCatch(...)
   12.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   13.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.               └─value[[3L]](cond)
   15.                 └─cli::cli_abort(...)
   16.                   └─rlang::abort(...)
  
  [ FAIL 1 | WARN 1 | SKIP 50 | PASS 152 ]
  Error:
  ! Test failures.
  Execution halted