* using log directory ‘/data/gannet/ripley/R/packages/tests-MKL/ChinAPIs.Rcheck’ * using R Under development (unstable) (2026-01-31 r89365) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2) GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2) * running under: Fedora Linux 42 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘ChinAPIs/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘ChinAPIs’ 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 ‘ChinAPIs’ can be installed ... [11s/13s] 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 ... 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 ... [11s/14s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [37s/47s] [37s/47s] ERROR 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(ChinAPIs) > > test_check("ChinAPIs") Saving _problems/test-get_china_hospital_beds-47.R Datasets available in the 'ChinAPIs' package: Datasets available in the 'ChinAPIs' package: [ FAIL 1 | WARN 0 | SKIP 18 | PASS 4051 ] ══ Skipped tests (18) ══════════════════════════════════════════════════════════ • On CRAN (18): 'test-get_china_child_mortality.R:13:3', 'test-get_china_child_mortality.R:33:3', 'test-get_china_child_mortality.R:40:3', 'test-get_china_child_mortality.R:47:3', 'test-get_china_energy_use.R:13:3', 'test-get_china_energy_use.R:33:3', 'test-get_china_energy_use.R:40:3', 'test-get_china_energy_use.R:47:3', 'test-get_china_gdp.R:13:3', 'test-get_china_gdp.R:34:3', 'test-get_china_gdp.R:41:3', 'test-get_china_gdp.R:48:3', 'test-get_china_gdp.R:56:3', 'test-get_china_holidays.R:12:3', 'test-get_china_holidays.R:33:3', 'test-get_country_info_cn.R:13:3', 'test-get_country_info_cn.R:42:3', 'test-get_country_info_cn.R:56:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get_china_hospital_beds.R:47:3'): get_china_hospital_beds allows for missing values (e.g., NA) ── Expected `any(is.na(result$value))` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 1 | WARN 0 | SKIP 18 | PASS 4051 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [23s/31s] OK * checking PDF version of manual ... [11s/15s] OK * checking HTML version of manual ... [13s/18s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/data/gannet/ripley/R/packages/tests-MKL/ChinAPIs.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 3:29.26, 147.91 + 14.38