CRAN Package Check Results for Package ChinAPIs

Last updated on 2026-01-18 02:50:51 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 6.40 95.66 102.06 OK
r-devel-linux-x86_64-debian-gcc 0.1.0 4.88 63.59 68.47 OK
r-devel-linux-x86_64-fedora-clang 0.1.0 12.00 138.47 150.47 OK
r-devel-linux-x86_64-fedora-gcc 0.1.0 11.00 148.26 159.26 OK
r-devel-windows-x86_64 0.1.0 11.00 130.00 141.00 OK
r-patched-linux-x86_64 0.1.0 7.73 81.23 88.96 OK
r-release-linux-x86_64 0.1.0 6.78 82.40 89.18 ERROR
r-release-macos-arm64 0.1.0 OK
r-release-macos-x86_64 0.1.0 5.00 94.00 99.00 OK
r-release-windows-x86_64 0.1.0 11.00 115.00 126.00 OK
r-oldrel-macos-arm64 0.1.0 OK
r-oldrel-macos-x86_64 0.1.0 5.00 95.00 100.00 OK
r-oldrel-windows-x86_64 0.1.0 12.00 143.00 155.00 OK

Check Details

Version: 0.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [24s/37s] 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") Error: status 400 Saving _problems/test-get_china_literacy_rate-15.R Saving _problems/test-get_china_literacy_rate-18.R Saving _problems/test-get_china_literacy_rate-21.R Saving _problems/test-get_china_literacy_rate-22.R Saving _problems/test-get_china_literacy_rate-23.R Saving _problems/test-get_china_literacy_rate-24.R Saving _problems/test-get_china_literacy_rate-36.R Saving _problems/test-get_china_literacy_rate-39.R Datasets available in the 'ChinAPIs' package: Datasets available in the 'ChinAPIs' package: [ FAIL 8 | WARN 0 | SKIP 18 | PASS 4044 ] ══ 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_literacy_rate.R:15:3'): get_china_literacy_rate() returns valid structure and types ── Expected `result` to be an S3 object. Actual OO type: none. ── Failure ('test-get_china_literacy_rate.R:18:3'): get_china_literacy_rate() returns valid structure and types ── Expected `result` to have names `c("indicator", "country", "year", "value")`. Differences: `actual` is NULL `expected` is a character vector ('indicator', 'country', 'year', 'value') ── Failure ('test-get_china_literacy_rate.R:21:3'): get_china_literacy_rate() returns valid structure and types ── Expected `result$indicator` to have type "character". Actual type: "NULL" ── Failure ('test-get_china_literacy_rate.R:22:3'): get_china_literacy_rate() returns valid structure and types ── Expected `result$country` to have type "character". Actual type: "NULL" ── Failure ('test-get_china_literacy_rate.R:23:3'): get_china_literacy_rate() returns valid structure and types ── Expected `result$year` to have type "integer". Actual type: "NULL" ── Failure ('test-get_china_literacy_rate.R:24:3'): get_china_literacy_rate() returns valid structure and types ── Expected `is.numeric(result$value) || is.integer(result$value)` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE ── Failure ('test-get_china_literacy_rate.R:36:3'): get_china_literacy_rate() returns valid structure and types ── Expected `nrow(result)` to equal 13. Differences: `actual` is NULL `expected` is a double vector (13) ── Failure ('test-get_china_literacy_rate.R:39:3'): get_china_literacy_rate() returns valid structure and types ── Expected `any(is.na(result$value)) || any(!is.na(result$value))` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE [ FAIL 8 | WARN 0 | SKIP 18 | PASS 4044 ] Error: ! Test failures. Execution halted Flavor: r-release-linux-x86_64