- using R Under development (unstable) (2025-11-14 r89021)
- 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 ‘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 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 ‘JapanAPIs’ can be installed ... [10s/16s] OK
See the install log for details.
- 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 ... [12s/24s] 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 ... [17s/33s] ERROR
Running ‘testthat.R’ [16s/32s]
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 502
Saving _problems/test-get_japan_population-15.R
Saving _problems/test-get_japan_population-19.R
Saving _problems/test-get_japan_population-22.R
Saving _problems/test-get_japan_population-23.R
Saving _problems/test-get_japan_population-24.R
Saving _problems/test-get_japan_population-25.R
Saving _problems/test-get_japan_population-26.R
Error: status 502
Saving _problems/test-get_japan_population-31.R
Error: status 502
Saving _problems/test-get_japan_population-37.R
Error: status 502
Saving _problems/test-get_japan_population-43.R
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Saving _problems/test-get_japan_population-70.R
Error: status 502
Saving _problems/test-get_japan_unemployment-15.R
Saving _problems/test-get_japan_unemployment-19.R
Saving _problems/test-get_japan_unemployment-22.R
Saving _problems/test-get_japan_unemployment-23.R
Saving _problems/test-get_japan_unemployment-24.R
Saving _problems/test-get_japan_unemployment-25.R
Error: status 502
Saving _problems/test-get_japan_unemployment-30.R
Error: status 502
Saving _problems/test-get_japan_unemployment-36.R
Error: status 502
Saving _problems/test-get_japan_unemployment-42.R
Error: status 502
Error: status 502
Error: status 502
Error: status 502
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 ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_japan_population.R:19:3'): get_japan_population() returns a tibble with correct structure and types ──
Expected `result` to have names `expected_names`.
Differences:
`actual` is NULL
`expected` is a character vector ('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 ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_japan_population.R:23:3'): get_japan_population() returns a tibble with correct structure and types ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_japan_population.R:24:3'): get_japan_population() returns a tibble with correct structure and types ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_japan_population.R:25:3'): get_japan_population() returns a tibble with correct structure and types ──
Expected `result$value` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_japan_population.R:26:3'): get_japan_population() returns a tibble with correct structure and types ──
Expected `result$value_label` to have type "character".
Actual type: "NULL"
── Failure ('test-get_japan_population.R:31:3'): get_japan_population() returns 13 rows for years 2010 to 2022 ──
Expected `nrow(result)` to equal 13.
Differences:
`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' ──
Expected `length(unique(result$country))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_japan_population.R:43:3'): get_japan_population(): indicator column contains only one consistent label ──
Expected `length(unique(result$indicator))` to equal 1.
Differences:
`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 ──
Expected `result$value_label` to equal `formatted_values`.
Differences:
`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 ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_japan_unemployment.R:19:3'): get_japan_unemployment() returns a tibble with correct structure and types ──
Expected `result` to have names `expected_names`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value')
── Failure ('test-get_japan_unemployment.R:22:3'): get_japan_unemployment() returns a tibble with correct structure and types ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_japan_unemployment.R:23:3'): get_japan_unemployment() returns a tibble with correct structure and types ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_japan_unemployment.R:24:3'): get_japan_unemployment() returns a tibble with correct structure and types ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_japan_unemployment.R:25:3'): get_japan_unemployment() returns a tibble with correct structure and types ──
Expected `result$value` to have type "double".
Actual type: "NULL"
── Failure ('test-get_japan_unemployment.R:30:3'): get_japan_unemployment() returns 13 rows for years 2010 to 2022 ──
Expected `nrow(result)` to equal 13.
Differences:
`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' ──
Expected `length(unique(result$country))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_japan_unemployment.R:42:3'): get_japan_unemployment(): indicator column is consistent across all rows ──
Expected `length(unique(result$indicator))` to equal 1.
Differences:
`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 ... [22s/46s] OK
- checking PDF version of manual ... [9s/18s] 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
- DONE
Status: 1 ERROR