* using log directory 'd:/Rcompile/CRANpkg/local/4.6/JapanAPIs.Rcheck' * using R Under development (unstable) (2025-08-30 r88742 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'JapanAPIs/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'JapanAPIs' 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'JapanAPIs' can be installed ... OK * checking installed package size ... 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [4s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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 ... [1s] 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 ... [3s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [48s] ERROR Running 'testthat.R' [48s] 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(JapanAPIs) > > test_check("JapanAPIs") Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Error: status 400 Datasets available in the 'JapanAPIs' package: Datasets available in the 'JapanAPIs' package: [ FAIL 20 | WARN 0 | SKIP 68 | PASS 476 ] ══ Skipped tests (68) ══════════════════════════════════════════════════════════ • On CRAN (68): 'test-get_country_info_jp.R:12:3', 'test-get_country_info_jp.R:42:3', 'test-get_country_info_jp.R:56:3', 'test-get_japan_child_mortality.R:12:3', 'test-get_japan_child_mortality.R:27:3', 'test-get_japan_child_mortality.R:33:3', 'test-get_japan_child_mortality.R:39:3', 'test-get_japan_child_mortality.R:45:3', 'test-get_japan_child_mortality.R:51:3', 'test-get_japan_child_mortality.R:57:3', 'test-get_japan_child_mortality.R:63:3', 'test-get_japan_child_mortality.R:70:3', 'test-get_japan_child_mortality.R:76:3', 'test-get_japan_child_mortality.R:82:3', 'test-get_japan_cpi.R:12:3', 'test-get_japan_cpi.R:27:3', 'test-get_japan_cpi.R:33:3', 'test-get_japan_cpi.R:39:3', 'test-get_japan_cpi.R:45:3', 'test-get_japan_cpi.R:51:3', 'test-get_japan_cpi.R:57:3', 'test-get_japan_cpi.R:63:3', 'test-get_japan_cpi.R:69:3', 'test-get_japan_cpi.R:75:3', 'test-get_japan_cpi.R:81:3', 'test-get_japan_energy_use.R:12:3', 'test-get_japan_energy_use.R:25:3', 'test-get_japan_energy_use.R:31:3', 'test-get_japan_energy_use.R:38:3', 'test-get_japan_energy_use.R:44:3', 'test-get_japan_energy_use.R:50:3', 'test-get_japan_energy_use.R:56:3', 'test-get_japan_energy_use.R:62:3', 'test-get_japan_energy_use.R:68:3', 'test-get_japan_energy_use.R:74:3', 'test-get_japan_energy_use.R:80:3', 'test-get_japan_gdp.R:12:3', 'test-get_japan_gdp.R:26:3', 'test-get_japan_gdp.R:32:3', 'test-get_japan_gdp.R:38:3', 'test-get_japan_gdp.R:44:3', 'test-get_japan_gdp.R:50:3', 'test-get_japan_gdp.R:56:3', 'test-get_japan_gdp.R:63:3', 'test-get_japan_gdp.R:69:3', 'test-get_japan_holidays.R:12:3', 'test-get_japan_holidays.R:32:3', 'test-get_japan_holidays.R:63:3', 'test-get_japan_hospital_beds.R:12:3', 'test-get_japan_hospital_beds.R:24:3', 'test-get_japan_hospital_beds.R:30:3', 'test-get_japan_hospital_beds.R:37:3', 'test-get_japan_hospital_beds.R:43:3', 'test-get_japan_hospital_beds.R:50:3', 'test-get_japan_hospital_beds.R:56:3', 'test-get_japan_hospital_beds.R:62:3', 'test-get_japan_hospital_beds.R:68:3', 'test-get_japan_life_expectancy.R:12:3', 'test-get_japan_life_expectancy.R:27:3', 'test-get_japan_life_expectancy.R:35:3', 'test-get_japan_life_expectancy.R:45:3', 'test-get_japan_life_expectancy.R:53:3', 'test-get_japan_life_expectancy.R:60:3', 'test-get_japan_literacy_rate.R:12:3', 'test-get_japan_literacy_rate.R:25:3', 'test-get_japan_literacy_rate.R:33:3', 'test-get_japan_literacy_rate.R:43:3', 'test-get_japan_literacy_rate.R:51:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-get_japan_population.R:15:3'): get_japan_population() returns a tibble with correct structure and types ── `result` is not an S3 object ── Failure ('test-get_japan_population.R:19:3'): get_japan_population() returns a tibble with correct structure and types ── Names of `result` ('') don't match 'indicator', 'country', 'year', 'value', 'value_label' ── Failure ('test-get_japan_population.R:22:3'): get_japan_population() returns a tibble with correct structure and types ── result$indicator has type 'NULL', not 'character'. ── Failure ('test-get_japan_population.R:23:3'): get_japan_population() returns a tibble with correct structure and types ── result$country has type 'NULL', not 'character'. ── Failure ('test-get_japan_population.R:24:3'): get_japan_population() returns a tibble with correct structure and types ── result$year has type 'NULL', not 'integer'. ── Failure ('test-get_japan_population.R:25:3'): get_japan_population() returns a tibble with correct structure and types ── result$value has type 'NULL', not 'integer'. ── Failure ('test-get_japan_population.R:26:3'): get_japan_population() returns a tibble with correct structure and types ── result$value_label has type 'NULL', not 'character'. ── Failure ('test-get_japan_population.R:31:3'): get_japan_population() returns 13 rows for years 2010 to 2022 ── nrow(result) (`actual`) not equal to 13 (`expected`). `actual` is NULL `expected` is a double vector (13) ── Failure ('test-get_japan_population.R:37:3'): get_japan_population(): country column contains only 'Japan' ── length(unique(result$country)) (`actual`) not equal to 1 (`expected`). `actual`: 0.0 `expected`: 1.0 ── Failure ('test-get_japan_population.R:43:3'): get_japan_population(): indicator column contains only one consistent label ── length(unique(result$indicator)) (`actual`) not equal to 1 (`expected`). `actual`: 0.0 `expected`: 1.0 ── Failure ('test-get_japan_population.R:70:3'): get_japan_population(): value_label column matches the formatted version of value ── result$value_label (`actual`) not equal to `formatted_values` (`expected`). `actual` is NULL `expected` is a character vector ('NULL') ── Failure ('test-get_japan_unemployment.R:15:3'): get_japan_unemployment() returns a tibble with correct structure and types ── `result` is not an S3 object ── Failure ('test-get_japan_unemployment.R:19:3'): get_japan_unemployment() returns a tibble with correct structure and types ── Names of `result` ('') don't match 'indicator', 'country', 'year', 'value' ── Failure ('test-get_japan_unemployment.R:22:3'): get_japan_unemployment() returns a tibble with correct structure and types ── result$indicator has type 'NULL', not 'character'. ── Failure ('test-get_japan_unemployment.R:23:3'): get_japan_unemployment() returns a tibble with correct structure and types ── result$country has type 'NULL', not 'character'. ── Failure ('test-get_japan_unemployment.R:24:3'): get_japan_unemployment() returns a tibble with correct structure and types ── result$year has type 'NULL', not 'integer'. ── Failure ('test-get_japan_unemployment.R:25:3'): get_japan_unemployment() returns a tibble with correct structure and types ── result$value has type 'NULL', not 'double'. ── Failure ('test-get_japan_unemployment.R:30:3'): get_japan_unemployment() returns 13 rows for years 2010 to 2022 ── nrow(result) (`actual`) not equal to 13 (`expected`). `actual` is NULL `expected` is a double vector (13) ── Failure ('test-get_japan_unemployment.R:36:3'): get_japan_unemployment(): country column contains only 'Japan' ── length(unique(result$country)) (`actual`) not equal to 1 (`expected`). `actual`: 0.0 `expected`: 1.0 ── Failure ('test-get_japan_unemployment.R:42:3'): get_japan_unemployment(): indicator column is consistent across all rows ── length(unique(result$indicator)) (`actual`) not equal to 1 (`expected`). `actual`: 0.0 `expected`: 1.0 [ FAIL 20 | WARN 0 | SKIP 68 | PASS 476 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [23s] OK * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [8s] OK * DONE Status: 1 ERROR