Running ‘testthat.R’ [5s/8s]
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(SouthKoreAPIs)
  > 
  > test_check("SouthKoreAPIs")
  Error: status 400
  Datasets available in the 'SouthKoreAPIs' package:
  Datasets available in the 'SouthKoreAPIs' package:
  [ FAIL 9 | WARN 0 | SKIP 77 | PASS 461 ]
  
  ══ Skipped tests (77) ══════════════════════════════════════════════════════════
  • On CRAN (77): 'test-get_country_info_kr.R:12:3',
    'test-get_country_info_kr.R:27:3', 'test-get_country_info_kr.R:43:3',
    'test-get_southkorea_child_mortality.R:13:3',
    'test-get_southkorea_child_mortality.R:28:3',
    'test-get_southkorea_child_mortality.R:34:3',
    'test-get_southkorea_child_mortality.R:40:3',
    'test-get_southkorea_child_mortality.R:46:3',
    'test-get_southkorea_child_mortality.R:52:3',
    'test-get_southkorea_child_mortality.R:58:3',
    'test-get_southkorea_child_mortality.R:64:3',
    'test-get_southkorea_child_mortality.R:70:3',
    'test-get_southkorea_child_mortality.R:76:3',
    'test-get_southkorea_child_mortality.R:82:3',
    'test-get_southkorea_cpi.R:12:3', 'test-get_southkorea_cpi.R:27:3',
    'test-get_southkorea_cpi.R:33:3', 'test-get_southkorea_cpi.R:39:3',
    'test-get_southkorea_cpi.R:45:3', 'test-get_southkorea_cpi.R:51:3',
    'test-get_southkorea_cpi.R:57:3', 'test-get_southkorea_cpi.R:63:3',
    'test-get_southkorea_cpi.R:69:3', 'test-get_southkorea_cpi.R:75:3',
    'test-get_southkorea_cpi.R:81:3', 'test-get_southkorea_holidays.R:12:3',
    'test-get_southkorea_holidays.R:27:3', 'test-get_southkorea_holidays.R:40:3',
    'test-get_southkorea_holidays.R:49:3',
    'test-get_southkorea_hospital_beds.R:12:3',
    'test-get_southkorea_hospital_beds.R:26:3',
    'test-get_southkorea_hospital_beds.R:32:3',
    'test-get_southkorea_hospital_beds.R:38:3',
    'test-get_southkorea_hospital_beds.R:45:3',
    'test-get_southkorea_hospital_beds.R:51:3',
    'test-get_southkorea_hospital_beds.R:57:3',
    'test-get_southkorea_hospital_beds.R:63:3',
    'test-get_southkorea_hospital_beds.R:69:3',
    'test-get_southkorea_hospital_beds.R:75:3',
    'test-get_southkorea_life_expectancy.R:12:3',
    'test-get_southkorea_life_expectancy.R:26:3',
    'test-get_southkorea_life_expectancy.R:32:3',
    'test-get_southkorea_life_expectancy.R:38:3',
    'test-get_southkorea_life_expectancy.R:45:3',
    'test-get_southkorea_life_expectancy.R:51:3',
    'test-get_southkorea_life_expectancy.R:57:3',
    'test-get_southkorea_life_expectancy.R:64:3',
    'test-get_southkorea_life_expectancy.R:70:3',
    'test-get_southkorea_literacy_rate.R:12:3',
    'test-get_southkorea_literacy_rate.R:27:3',
    'test-get_southkorea_literacy_rate.R:33:3',
    'test-get_southkorea_literacy_rate.R:39:3',
    'test-get_southkorea_literacy_rate.R:46:3',
    'test-get_southkorea_literacy_rate.R:52:3',
    'test-get_southkorea_literacy_rate.R:58:3',
    'test-get_southkorea_literacy_rate.R:64:3',
    'test-get_southkorea_literacy_rate.R:71:3',
    'test-get_southkorea_literacy_rate.R:77:3',
    'test-get_southkorea_population.R:12:3',
    'test-get_southkorea_population.R:27:3',
    'test-get_southkorea_population.R:33:3',
    'test-get_southkorea_population.R:39:3',
    'test-get_southkorea_population.R:46:3',
    'test-get_southkorea_population.R:52:3',
    'test-get_southkorea_population.R:58:3',
    'test-get_southkorea_population.R:65:3',
    'test-get_southkorea_population.R:73:3',
    'test-get_southkorea_population.R:79:3',
    'test-get_southkorea_unemployment.R:13:3',
    'test-get_southkorea_unemployment.R:28:3',
    'test-get_southkorea_unemployment.R:34:3',
    'test-get_southkorea_unemployment.R:41:3',
    'test-get_southkorea_unemployment.R:48:3',
    'test-get_southkorea_unemployment.R:54:3',
    'test-get_southkorea_unemployment.R:60:3',
    'test-get_southkorea_unemployment.R:67:3',
    'test-get_southkorea_unemployment.R:73:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_southkorea_gdp.R:15:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  is.null(result) is not FALSE
  
  `actual`:   TRUE 
  `expected`: FALSE
  ── Failure ('test-get_southkorea_gdp.R:18:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  `result` is not an S3 object
  ── Failure ('test-get_southkorea_gdp.R:21:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  Names of `result` ('') don't match 'indicator', 'country', 'year', 'value', 'value_label'
  ── Failure ('test-get_southkorea_gdp.R:24:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  result$indicator has type 'NULL', not 'character'.
  ── Failure ('test-get_southkorea_gdp.R:25:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  result$country has type 'NULL', not 'character'.
  ── Failure ('test-get_southkorea_gdp.R:26:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  result$year has type 'NULL', not 'integer'.
  ── Failure ('test-get_southkorea_gdp.R:27:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  result$value has type 'NULL', not 'double'.
  ── Failure ('test-get_southkorea_gdp.R:28:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  result$value_label has type 'NULL', not 'character'.
  ── Failure ('test-get_southkorea_gdp.R:40:3'): get_southkorea_gdp() returns a tibble with the correct structure and content ──
  nrow(result) (`actual`) not equal to 13 (`expected`).
  
  `actual` is NULL
  `expected` is a double vector (13)
  
  [ FAIL 9 | WARN 0 | SKIP 77 | PASS 461 ]
  Error: Test failures
  Execution halted