* using log directory 'd:/Rcompile/CRANpkg/local/4.6/nisrarr.Rcheck' * using R Under development (unstable) (2025-07-21 r88439 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'nisrarr/DESCRIPTION' ... OK * this is package 'nisrarr' version '0.1.1' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'nisrarr' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [3s] OK * checking Rd files ... [0s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [5s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [4s] ERROR Running 'testthat.R' [4s] 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [9s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR