Running ‘testthat.R’ [11s/21s]
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(IndonesiAPIs)
  > 
  > test_check("IndonesiAPIs")
  Error: status 502
  Saving _problems/test-get_indonesia_hospital_beds-15.R
  Saving _problems/test-get_indonesia_hospital_beds-19.R
  Saving _problems/test-get_indonesia_hospital_beds-22.R
  Saving _problems/test-get_indonesia_hospital_beds-23.R
  Saving _problems/test-get_indonesia_hospital_beds-24.R
  Saving _problems/test-get_indonesia_hospital_beds-25.R
  Error: status 502
  Error: status 502
  Error: status 502
  Saving _problems/test-get_indonesia_hospital_beds-50.R
  Datasets available in the 'IndonesiAPIs' package:
  Datasets available in the 'IndonesiAPIs' package:
  [ FAIL 7 | WARN 2 | SKIP 88 | PASS 155 ]
  
  ══ Skipped tests (88) ══════════════════════════════════════════════════════════
  • On CRAN (88): 'test-get_country_info_idn.R:13:3',
    'test-get_country_info_idn.R:39:3', 'test-get_country_info_idn.R:59:3',
    'test-get_indonesia_child_mortality.R:12:3',
    'test-get_indonesia_child_mortality.R:30:3',
    'test-get_indonesia_child_mortality.R:44:3',
    'test-get_indonesia_child_mortality.R:58:3', 'test-get_indonesia_cpi.R:12:3',
    'test-get_indonesia_cpi.R:30:3', 'test-get_indonesia_cpi.R:44:3',
    'test-get_indonesia_cpi.R:58:3', 'test-get_indonesia_energy_use.R:12:3',
    'test-get_indonesia_energy_use.R:30:3',
    'test-get_indonesia_energy_use.R:44:3',
    'test-get_indonesia_energy_use.R:55:3',
    'test-get_indonesia_energy_use.R:66:3', 'test-get_indonesia_gdp.R:12:3',
    'test-get_indonesia_gdp.R:26:3', 'test-get_indonesia_gdp.R:32:3',
    'test-get_indonesia_gdp.R:38:3', 'test-get_indonesia_gdp.R:44:3',
    'test-get_indonesia_gdp.R:50:3', 'test-get_indonesia_gdp.R:56:3',
    'test-get_indonesia_gdp.R:63:3', 'test-get_indonesia_gdp.R:69:3',
    'test-get_indonesia_gdp.R:75:3', 'test-get_indonesia_gdp.R:82:3',
    'test-get_indonesia_holidays.R:12:3', 'test-get_indonesia_holidays.R:24:3',
    'test-get_indonesia_holidays.R:30:3', 'test-get_indonesia_holidays.R:36:3',
    'test-get_indonesia_holidays.R:47:3', 'test-get_indonesia_holidays.R:53:3',
    'test-get_indonesia_life_expectancy.R:13:3',
    'test-get_indonesia_life_expectancy.R:28:3',
    'test-get_indonesia_life_expectancy.R:34:3',
    'test-get_indonesia_life_expectancy.R:40:3',
    'test-get_indonesia_life_expectancy.R:46:3',
    'test-get_indonesia_life_expectancy.R:52:3',
    'test-get_indonesia_life_expectancy.R:58:3',
    'test-get_indonesia_life_expectancy.R:64:3',
    'test-get_indonesia_life_expectancy.R:71:3',
    'test-get_indonesia_life_expectancy.R:77:3',
    'test-get_indonesia_life_expectancy.R:83:3',
    'test-get_indonesia_life_expectancy.R:89:3',
    'test-get_indonesia_life_expectancy.R:97:3',
    'test-get_indonesia_literacy_rate.R:13:3',
    'test-get_indonesia_literacy_rate.R:28:3',
    'test-get_indonesia_literacy_rate.R:34:3',
    'test-get_indonesia_literacy_rate.R:40:3',
    'test-get_indonesia_literacy_rate.R:46:3',
    'test-get_indonesia_literacy_rate.R:52:3',
    'test-get_indonesia_literacy_rate.R:58:3',
    'test-get_indonesia_literacy_rate.R:64:3',
    'test-get_indonesia_literacy_rate.R:71:3',
    'test-get_indonesia_literacy_rate.R:77:3',
    'test-get_indonesia_literacy_rate.R:83:3',
    'test-get_indonesia_literacy_rate.R:89:3',
    'test-get_indonesia_literacy_rate.R:95:3',
    'test-get_indonesia_population.R:12:3',
    'test-get_indonesia_population.R:26:3',
    'test-get_indonesia_population.R:32:3',
    'test-get_indonesia_population.R:38:3',
    'test-get_indonesia_population.R:44:3',
    'test-get_indonesia_population.R:50:3',
    'test-get_indonesia_population.R:56:3',
    'test-get_indonesia_population.R:63:3',
    'test-get_indonesia_population.R:69:3',
    'test-get_indonesia_population.R:75:3',
    'test-get_indonesia_population.R:81:3',
    'test-get_indonesia_population.R:88:3',
    'test-get_indonesia_population.R:94:3',
    'test-get_indonesia_population.R:100:3',
    'test-get_indonesia_population.R:106:3',
    'test-get_indonesia_unemployment.R:12:3',
    'test-get_indonesia_unemployment.R:27:3',
    'test-get_indonesia_unemployment.R:33:3',
    'test-get_indonesia_unemployment.R:39:3',
    'test-get_indonesia_unemployment.R:45:3',
    'test-get_indonesia_unemployment.R:51:3',
    'test-get_indonesia_unemployment.R:57:3',
    'test-get_indonesia_unemployment.R:63:3',
    'test-get_indonesia_unemployment.R:70:3',
    'test-get_indonesia_unemployment.R:76:3',
    'test-get_indonesia_unemployment.R:82:3',
    'test-get_indonesia_unemployment.R:88:3',
    'test-get_indonesia_unemployment.R:94:3',
    'test-get_indonesia_unemployment.R:102:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_indonesia_hospital_beds.R:15:3'): get_indonesia_hospital_beds() returns a tibble/data frame with correct structure ──
  Expected `result` to be an S3 object.
  Actual OO type: none.
  ── Failure ('test-get_indonesia_hospital_beds.R:19:3'): get_indonesia_hospital_beds() returns a tibble/data frame with correct structure ──
  Expected `all(expected_cols %in% colnames(result))` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test-get_indonesia_hospital_beds.R:22:3'): get_indonesia_hospital_beds() returns a tibble/data frame with correct structure ──
  Expected `result$indicator` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_indonesia_hospital_beds.R:23:3'): get_indonesia_hospital_beds() returns a tibble/data frame with correct structure ──
  Expected `result$country` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_indonesia_hospital_beds.R:24:3'): get_indonesia_hospital_beds() returns a tibble/data frame with correct structure ──
  Expected `result$year` to have type "integer".
  Actual type: "NULL"
  ── Failure ('test-get_indonesia_hospital_beds.R:25:3'): get_indonesia_hospital_beds() returns a tibble/data frame with correct structure ──
  Expected `result$value` to have type "double".
  Actual type: "NULL"
  ── Failure ('test-get_indonesia_hospital_beds.R:50:3'): get_indonesia_hospital_beds() handles missing values gracefully ──
  Expected `any(is.na(result$value))` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 7 | WARN 2 | SKIP 88 | PASS 155 ]
  Error:
  ! Test failures.
  Execution halted