Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > test_check("nisrarr")
  Loading required package: nisrarr
  [ FAIL 6 | WARN 0 | SKIP 2 | PASS 7 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-nisra_df.R:7:3', 'test-nisra_df.R:25:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-nisra_data_portal_request.R:3:5'): nisra_data_portal reports application errors ──
  Error in `resp_body_raw(resp)`: Can't retrieve empty body.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-nisra_data_portal_request.R:3:5
    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. └─nisrarr:::nisra_data_portal("incorrect_method", flush_cache = TRUE)
    8.   └─httr2::resp_body_string(resp)
    9.     └─httr2::resp_body_raw(resp)
   10.       └─cli::cli_abort("Can't retrieve empty body.")
   11.         └─rlang::abort(...)
  ── Error ('test-nisra_data_portal_request.R:13:5'): nisra_search finds the right keywords ──
  Error in `resp_body_raw(resp)`: Can't retrieve empty body.
  Backtrace:
      ▆
   1. └─nisrarr::nisra_search(...) at test-nisra_data_portal_request.R:13:5
   2.   └─nisrarr:::nisra_read_collection(datefrom = datefrom, flush_cache = flush_cache)
   3.     └─nisrarr:::nisra_data_portal(...)
   4.       └─httr2::resp_body_string(resp)
   5.         └─httr2::resp_body_raw(resp)
   6.           └─cli::cli_abort("Can't retrieve empty body.")
   7.             └─rlang::abort(...)
  ── Error ('test-nisra_data_portal_request.R:37:5'): nisra_search checks for dimensions ──
  Error in `resp_body_raw(resp)`: Can't retrieve empty body.
  Backtrace:
      ▆
   1. └─nisrarr::nisra_search(...) at test-nisra_data_portal_request.R:37:5
   2.   └─nisrarr:::nisra_read_collection(datefrom = datefrom, flush_cache = flush_cache)
   3.     └─nisrarr:::nisra_data_portal(...)
   4.       └─httr2::resp_body_string(resp)
   5.         └─httr2::resp_body_raw(resp)
   6.           └─cli::cli_abort("Can't retrieve empty body.")
   7.             └─rlang::abort(...)
  ── Error ('test-nisra_data_portal_request.R:58:5'): datasets are returned as tibbles ──
  Error in `resp_body_raw(resp)`: Can't retrieve empty body.
  Backtrace:
      ▆
   1. └─nisrarr::nisra_read_dataset("CCMLGD", flush_cache = TRUE) at test-nisra_data_portal_request.R:58:5
   2.   └─nisrarr:::nisra_data_portal(...)
   3.     └─httr2::resp_body_string(resp)
   4.       └─httr2::resp_body_raw(resp)
   5.         └─cli::cli_abort("Can't retrieve empty body.")
   6.           └─rlang::abort(...)
  ── Error ('test-nisra_data_portal_request.R:80:5'): cache is used ──────────────
  Error in `resp_body_raw(resp)`: Can't retrieve empty body.
  Backtrace:
      ▆
   1. └─nisrarr::nisra_read_dataset("CCMLGD", flush_cache = TRUE) at test-nisra_data_portal_request.R:80:5
   2.   └─nisrarr:::nisra_data_portal(...)
   3.     └─httr2::resp_body_string(resp)
   4.       └─httr2::resp_body_raw(resp)
   5.         └─cli::cli_abort("Can't retrieve empty body.")
   6.           └─rlang::abort(...)
  ── Error ('test-nisra_data_portal_request.R:92:5'): message is shown if dataset does not exist ──
  Error in `resp_body_raw(resp)`: Can't retrieve empty body.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-nisra_data_portal_request.R:92:5
    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. └─nisrarr::nisra_read_dataset("notacode", flush_cache = TRUE)
    8.   └─nisrarr:::nisra_data_portal(...)
    9.     └─httr2::resp_body_string(resp)
   10.       └─httr2::resp_body_raw(resp)
   11.         └─cli::cli_abort("Can't retrieve empty body.")
   12.           └─rlang::abort(...)
  
  [ FAIL 6 | WARN 0 | SKIP 2 | PASS 7 ]
  Error: Test failures
  Execution halted