* using log directory ‘/data/localhost/ripley/R/packages/tests-donttest/comtrade.Rcheck’ * using R Under development (unstable) (2026-07-23 r90290) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2) GNU Fortran (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-07-23 11:24:11 UTC * checking for file ‘comtrade/DESCRIPTION’ ... OK * this is package ‘comtrade’ version ‘0.1.0’ * 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 ‘comtrade’ can be installed ... OK * checking package 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... 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 examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘comtrade-Ex.R’ failed The error most likely occurred in: > ### Name: ct_balance > ### Title: Trade Balance by Partner > ### Aliases: ct_balance > > ### ** Examples > > ## No test: > op <- options(comtrade.cache_dir = tempdir()) > ct_balance("GBR", year = 2023) ℹ No API key set. Using preview endpoint (500 records max, no descriptions). ℹ For full access (100k records, descriptions), get a free key at ℹ Then run: `ct_set_key("your-key")` Error in `httr2::resp_body_json()`: ! Unexpected content type "NA". • Expecting type "application/json" or suffix "json". Backtrace: ▆ 1. └─comtrade::ct_balance("GBR", year = 2023) 2. └─comtrade::ct_trade(...) 3. └─comtrade:::ct_request(endpoint, params) 4. └─httr2::resp_body_json(resp) 5. └─httr2::resp_check_content_type(...) 6. └─httr2:::check_content_type(...) 7. └─cli::cli_abort(...) 8. └─rlang::abort(...) Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/localhost/ripley/R/packages/tests-donttest/comtrade.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 0:38.53, 18.04 + 4.04