Last updated on 2026-04-02 12:50:40 CEST.
| Package | ERROR | OK |
|---|---|---|
| comtradr | 3 | 11 |
Current CRAN status: ERROR: 3, OK: 11
Version: 1.0.5
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [7s/19s]
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()`:
! Timeout was reached [comtradeapi.un.org]:
Connection timed out after 10001 milliseconds
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-devel-linux-x86_64-debian-gcc
Version: 1.0.5
Check: tests
Result: ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [20s]
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)
In the last version of comtradr the cache location has been changed, because it
was not CRAN compliant. You can:
✔ Migrate the cache and clean old files with `ct_migrate_cache()`
✖ Ignore this warning, a new cache is created automatically.
ℹ Delete your old cache manually with:
• `rappdirs::user_cache_dir('comtradr') |> list.files(full.names = T) |>
file.remove()`
and
• `rappdirs::user_cache_dir('comtradr_bulk') |> list.files(full.names = T) |>
file.remove()`
>
> 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()`:
! Timeout was reached [comtradeapi.un.org]:
Connection timed out after 10005 milliseconds
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-devel-windows-x86_64
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