- using R version 4.5.1 Patched (2025-07-14 r88411)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-19) 14.2.0
GNU Fortran (Debian 14.2.0-19) 14.2.0
- running under: Debian GNU/Linux 13 (trixie)
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘nisrarr’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/1s] OK
- checking whether startup messages can be suppressed ... [0s/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 ... [5s/6s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [3s/6s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [4s/6s] ERROR
Running ‘testthat.R’ [4s/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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s/13s] OK
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR