CRAN Package Check Results for Maintainer ‘Paul Bochtler <paulbochtler.gh at gmail.com>’

Last updated on 2026-04-05 01:50:33 CEST.

Package ERROR OK
comtradr 1 13

Package comtradr

Current CRAN status: ERROR: 1, OK: 13

Version: 1.0.5
Check: tests
Result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [9s/14s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(comtradr) > > test_check("comtradr") Saving _problems/test-utils-274.R [ FAIL 1 | WARN 0 | SKIP 11 | PASS 293 ] ══ Skipped tests (11) ══════════════════════════════════════════════════════════ • On CRAN (9): 'test-ct_perform_request.R:7:5', 'test-ct_perform_request.R:30:5', 'test-ct_perform_request.R:55:5', 'test-ct_perform_request.R:70:5', 'test-ct_perform_request.R:85:5', 'test-ct_perform_request.R:107:5', 'test-ct_perform_request.R:131:5', 'test-ct_perform_request.R:146:5', 'test-ct_perform_request.R:168:3' • any(class(test) %in% c("rlang_error", "error", "try-error")) is TRUE (2): 'test-ct_get_bulk.R:83:3', 'test-ct_get_data.R:96:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-utils.R:274:3'): update flag prevents repeated downloads in same session ── <httr2_failure/httr2_error/rlang_error/error/condition> Error in `httr2::req_perform(httr2::request(datasets$fileuri))`: Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Failure when receiving data from the peer [comtradeapi.un.org]: Recv failure: Connection reset by peer Backtrace: ▆ 1. └─comtradr::ct_get_ref_table("flow_direction", update = TRUE) at test-utils.R:274:3 2. └─comtradr:::ct_download_ref_table(ref_table_id = ref_table_id) 3. └─httr2::req_perform(httr2::request(datasets$fileuri)) 4. └─httr2:::handle_resp(req, resp, error_call = error_call) 5. └─rlang::cnd_signal(resp) [ FAIL 1 | WARN 0 | SKIP 11 | PASS 293 ] Error: ! Test failures. Execution halted Flavor: r-patched-linux-x86_64