Running ‘testthat.R’ [7s/12s]
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(MexicoDataAPI)
  > 
  > test_check("MexicoDataAPI")
  Saving _problems/test-get_country_info_mx-24.R
  Saving _problems/test-get_country_info_mx-45.R
  Datasets available in the 'MexicoDataAPI' package:
  Datasets available in the 'MexicoDataAPI' package:
  [ FAIL 2 | WARN 0 | SKIP 22 | PASS 149 ]
  
  ══ Skipped tests (22) ══════════════════════════════════════════════════════════
  • On CRAN (22): 'test-get_mexico_cpi.R:24:3', 'test-get_mexico_cpi.R:52:3',
    'test-get_mexico_gdp.R:24:3', 'test-get_mexico_life_expectancy.R:24:3',
    'test-get_mexico_life_expectancy.R:40:3',
    'test-get_mexico_life_expectancy.R:50:3',
    'test-get_mexico_literacy_rate.R:24:3',
    'test-get_mexico_literacy_rate.R:44:3',
    'test-get_mexico_literacy_rate.R:51:3',
    'test-get_mexico_literacy_rate.R:58:3', 'test-get_mexico_population.R:25:3',
    'test-get_mexico_population.R:46:3', 'test-get_mexico_population.R:53:3',
    'test-get_mexico_population.R:60:3', 'test-get_mexico_population.R:67:3',
    'test-get_mexico_population.R:75:3', 'test-get_mexico_unemployment.R:24:3',
    'test-get_mexico_unemployment.R:44:3', 'test-get_mexico_unemployment.R:51:3',
    'test-get_mexico_unemployment.R:58:3', 'test-get_mexico_unemployment.R:65:3',
    'test-get_mexico_unemployment.R:73:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_country_info_mx.R:24:3'): get_country_info_mx() returns a tibble with correct structure ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─MexicoDataAPI::get_country_info_mx() at test-get_country_info_mx.R:24:3
  ── Error ('test-get_country_info_mx.R:45:3'): get_country_info_mx() returns data for Mexico ──
  Error in `data_list[1, ]`: incorrect number of dimensions
  Backtrace:
      ▆
   1. └─MexicoDataAPI::get_country_info_mx() at test-get_country_info_mx.R:45:3
  
  [ FAIL 2 | WARN 0 | SKIP 22 | PASS 149 ]
  Error:
  ! Test failures.
  Execution halted