Running ‘testthat.R’ [10s/14s]
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(BrazilDataAPI)
  > 
  > test_check("BrazilDataAPI")
  Error: Received status code 400
  Error: Received status code 404
  Error: status 400 - CNPJ not found or invalid.
  Error: status 404 - CNPJ not found or invalid.
  Saving _problems/test-get_country_info_br-24.R
  Saving _problems/test-get_country_info_br-33.R
  Saving _problems/test-get_country_info_br-45.R
  Saving _problems/test-get_country_info_br-57.R
  Saving _problems/test-get_country_info_br-67.R
  Saving _problems/test-get_country_info_br-75.R
  Saving _problems/test-get_country_info_br-82.R
  Saving _problems/test-get_country_info_br-89.R
  Saving _problems/test-get_country_info_br-95.R
  Saving _problems/test-get_country_info_br-101.R
  Datasets available in the 'BrazilDataAPI' package:
  Datasets available in the 'BrazilDataAPI' package:
  [ FAIL 10 | WARN 0 | SKIP 150 | PASS 89 ]
  
  ══ Skipped tests (150) ═════════════════════════════════════════════════════════
  • On CRAN (150): 'test-get_brazil_banks.R:23:3',
    'test-get_brazil_banks.R:42:3', 'test-get_brazil_cep.R:23:3',
    'test-get_brazil_cep.R:51:3', 'test-get_brazil_child_mortality.R:23:3',
    'test-get_brazil_child_mortality.R:37:3',
    'test-get_brazil_child_mortality.R:43:3',
    'test-get_brazil_child_mortality.R:50:3',
    'test-get_brazil_child_mortality.R:56:3',
    'test-get_brazil_child_mortality.R:63:3',
    'test-get_brazil_child_mortality.R:69:3',
    'test-get_brazil_child_mortality.R:75:3',
    'test-get_brazil_child_mortality.R:81:3',
    'test-get_brazil_child_mortality.R:87:3',
    'test-get_brazil_child_mortality.R:93:3',
    'test-get_brazil_child_mortality.R:99:3',
    'test-get_brazil_child_mortality.R:110:3',
    'test-get_brazil_child_mortality.R:126:3',
    'test-get_brazil_child_mortality.R:135:3', 'test-get_brazil_cnpj.R:23:3',
    'test-get_brazil_cnpj.R:57:3', 'test-get_brazil_cpi.R:23:3',
    'test-get_brazil_cpi.R:37:3', 'test-get_brazil_cpi.R:43:3',
    'test-get_brazil_cpi.R:50:3', 'test-get_brazil_cpi.R:56:3',
    'test-get_brazil_cpi.R:63:3', 'test-get_brazil_cpi.R:69:3',
    'test-get_brazil_cpi.R:75:3', 'test-get_brazil_cpi.R:81:3',
    'test-get_brazil_cpi.R:87:3', 'test-get_brazil_cpi.R:93:3',
    'test-get_brazil_cpi.R:99:3', 'test-get_brazil_cpi.R:110:3',
    'test-get_brazil_cpi.R:119:3', 'test-get_brazil_cpi.R:134:3',
    'test-get_brazil_cpi.R:143:3', 'test-get_brazil_cpi.R:160:3',
    'test-get_brazil_energy_use.R:23:3', 'test-get_brazil_energy_use.R:37:3',
    'test-get_brazil_energy_use.R:43:3', 'test-get_brazil_energy_use.R:50:3',
    'test-get_brazil_energy_use.R:56:3', 'test-get_brazil_energy_use.R:63:3',
    'test-get_brazil_energy_use.R:69:3', 'test-get_brazil_energy_use.R:75:3',
    'test-get_brazil_energy_use.R:81:3', 'test-get_brazil_energy_use.R:87:3',
    'test-get_brazil_energy_use.R:93:3', 'test-get_brazil_energy_use.R:99:3',
    'test-get_brazil_energy_use.R:111:3', 'test-get_brazil_energy_use.R:122:3',
    'test-get_brazil_energy_use.R:131:3', 'test-get_brazil_energy_use.R:143:3',
    'test-get_brazil_energy_use.R:155:3', 'test-get_brazil_energy_use.R:164:3',
    'test-get_brazil_gdp.R:23:3', 'test-get_brazil_gdp.R:38:3',
    'test-get_brazil_gdp.R:44:3', 'test-get_brazil_gdp.R:51:3',
    'test-get_brazil_gdp.R:57:3', 'test-get_brazil_gdp.R:64:3',
    'test-get_brazil_gdp.R:70:3', 'test-get_brazil_gdp.R:76:3',
    'test-get_brazil_gdp.R:82:3', 'test-get_brazil_gdp.R:88:3',
    'test-get_brazil_gdp.R:94:3', 'test-get_brazil_gdp.R:100:3',
    'test-get_brazil_gdp.R:112:3', 'test-get_brazil_gdp.R:123:3',
    'test-get_brazil_gdp.R:132:3', 'test-get_brazil_gdp.R:144:3',
    'test-get_brazil_gdp.R:157:3', 'test-get_brazil_gdp.R:169:3',
    'test-get_brazil_gdp.R:178:3', 'test-get_brazil_gdp.R:188:3',
    'test-get_brazil_holidays.R:23:3', 'test-get_brazil_holidays.R:41:3',
    'test-get_brazil_holidays.R:54:3', 'test-get_brazil_holidays.R:62:3',
    'test-get_brazil_hospital_beds.R:23:3',
    'test-get_brazil_hospital_beds.R:37:3',
    'test-get_brazil_hospital_beds.R:43:3',
    'test-get_brazil_hospital_beds.R:50:3',
    'test-get_brazil_hospital_beds.R:56:3',
    'test-get_brazil_hospital_beds.R:63:3',
    'test-get_brazil_hospital_beds.R:69:3',
    'test-get_brazil_hospital_beds.R:75:3',
    'test-get_brazil_hospital_beds.R:81:3',
    'test-get_brazil_hospital_beds.R:87:3',
    'test-get_brazil_hospital_beds.R:93:3',
    'test-get_brazil_hospital_beds.R:99:3',
    'test-get_brazil_hospital_beds.R:111:3',
    'test-get_brazil_hospital_beds.R:122:3',
    'test-get_brazil_hospital_beds.R:131:3',
    'test-get_brazil_hospital_beds.R:143:3',
    'test-get_brazil_hospital_beds.R:152:3',
    'test-get_brazil_hospital_beds.R:169:3',
    'test-get_brazil_hospital_beds.R:185:3',
    'test-get_brazil_life_expectancy.R:24:3',
    'test-get_brazil_life_expectancy.R:40:3',
    'test-get_brazil_life_expectancy.R:46:3',
    'test-get_brazil_life_expectancy.R:53:3',
    'test-get_brazil_life_expectancy.R:60:3',
    'test-get_brazil_life_expectancy.R:66:3',
    'test-get_brazil_life_expectancy.R:72:3',
    'test-get_brazil_life_expectancy.R:78:3',
    'test-get_brazil_literacy_rate.R:24:3',
    'test-get_brazil_literacy_rate.R:40:3',
    'test-get_brazil_literacy_rate.R:46:3',
    'test-get_brazil_literacy_rate.R:53:3',
    'test-get_brazil_literacy_rate.R:60:3',
    'test-get_brazil_literacy_rate.R:66:3',
    'test-get_brazil_literacy_rate.R:73:3',
    'test-get_brazil_literacy_rate.R:79:3',
    'test-get_brazil_municipalities.R:23:3',
    'test-get_brazil_municipalities.R:44:3',
    'test-get_brazil_municipalities.R:50:3', 'test-get_brazil_population.R:23:3',
    'test-get_brazil_population.R:40:3', 'test-get_brazil_population.R:46:3',
    'test-get_brazil_population.R:52:3', 'test-get_brazil_population.R:59:3',
    'test-get_brazil_population.R:65:3', 'test-get_brazil_population.R:72:3',
    'test-get_brazil_population.R:79:3', 'test-get_brazil_rate_name.R:24:3',
    'test-get_brazil_rate_name.R:37:3', 'test-get_brazil_rate_name.R:50:3',
    'test-get_brazil_rate_name.R:63:3', 'test-get_brazil_rate_name.R:71:3',
    'test-get_brazil_rate_name.R:83:3', 'test-get_brazil_rates.R:23:3',
    'test-get_brazil_rates.R:44:3', 'test-get_brazil_rates.R:55:3',
    'test-get_brazil_rates.R:61:3', 'test-get_brazil_unemployment.R:23:3',
    'test-get_brazil_unemployment.R:39:3', 'test-get_brazil_unemployment.R:45:3',
    'test-get_brazil_unemployment.R:52:3', 'test-get_brazil_unemployment.R:59:3',
    'test-get_brazil_unemployment.R:65:3', 'test-get_brazil_unemployment.R:71:3',
    'test-get_brazil_unemployment.R:78:3', 'test-get_brazil_unemployment.R:84:3',
    'test-get_brazil_vehicle_brands.R:23:3',
    'test-get_brazil_vehicle_brands.R:31:3',
    'test-get_brazil_vehicle_brands.R:39:3',
    'test-get_brazil_vehicle_brands.R:47:3',
    'test-get_brazil_vehicle_brands.R:54:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_country_info_br.R:24:3'): get_country_info_br() returns tibble with correct structure ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:24:3
  ── Error ('test-get_country_info_br.R:33:3'): get_country_info_br() returns data of correct types ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:33:3
  ── Error ('test-get_country_info_br.R:45:3'): get_country_info_br() returns expected values for Brazil ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:45:3
  ── Error ('test-get_country_info_br.R:57:3'): get_country_info_br() returns non-empty character values ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:57:3
  ── Error ('test-get_country_info_br.R:67:3'): get_country_info_br() returns positive numeric values ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:67:3
  ── Error ('test-get_country_info_br.R:75:3'): get_country_info_br() area is approximately correct for Brazil ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:75:3
  ── Error ('test-get_country_info_br.R:82:3'): get_country_info_br() population is within reasonable range ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:82:3
  ── Error ('test-get_country_info_br.R:89:3'): get_country_info_br() returns consistent data types across calls ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:89:3
  ── Error ('test-get_country_info_br.R:95:3'): get_country_info_br() returns identical results on multiple calls ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:95:3
  ── Error ('test-get_country_info_br.R:101:3'): get_country_info_br() has no missing values in required fields ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:101:3
  
  [ FAIL 10 | WARN 0 | SKIP 150 | PASS 89 ]
  Error:
  ! Test failures.
  Execution halted