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