Running 'testthat.R' [5s]
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")
  API request failed.
  Saving _problems/test-get_country_info_mx-26.R
  Saving _problems/test-get_country_info_mx-27.R
  Saving _problems/test-get_country_info_mx-32.R
  Saving _problems/test-get_country_info_mx-34.R
  Saving _problems/test-get_country_info_mx-35.R
  Saving _problems/test-get_country_info_mx-36.R
  Saving _problems/test-get_country_info_mx-37.R
  Saving _problems/test-get_country_info_mx-38.R
  Saving _problems/test-get_country_info_mx-39.R
  Saving _problems/test-get_country_info_mx-40.R
  Saving _problems/test-get_country_info_mx-41.R
  API request failed.
  Saving _problems/test-get_country_info_mx-47.R
  Saving _problems/test-get_country_info_mx-48.R
  Saving _problems/test-get_country_info_mx-49.R
  Saving _problems/test-get_country_info_mx-50.R
  Datasets available in the 'MexicoDataAPI' package:
  Datasets available in the 'MexicoDataAPI' package:
  [ FAIL 15 | 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 ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_country_info_mx.R:26:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `result` to be an S3 object.
  Actual OO type: none.
  ── Failure ('test-get_country_info_mx.R:27:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `nrow(result)` to equal 1.
  Differences:
  `actual` is NULL
  `expected` is a double vector (1)
  
  ── Failure ('test-get_country_info_mx.R:28:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `result` to have names `c(...)`.
  Differences:
  `actual` is NULL
  `expected` is a character vector ('name_common', 'name_official', 'region', 'subregion', 'capital', ...)
  
  ── Failure ('test-get_country_info_mx.R:34:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `result$name_common` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_country_info_mx.R:35:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `result$name_official` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_country_info_mx.R:36:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `result$region` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_country_info_mx.R:37:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `result$subregion` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_country_info_mx.R:38:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `result$capital` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_country_info_mx.R:39:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `is.numeric(result$area)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test-get_country_info_mx.R:40:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `is.numeric(result$population)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  ── Failure ('test-get_country_info_mx.R:41:3'): get_country_info_mx() returns a tibble with correct structure ──
  Expected `result$languages` to have type "character".
  Actual type: "NULL"
  ── Failure ('test-get_country_info_mx.R:47:3'): get_country_info_mx() returns data for Mexico ──
  Expected `result$name_common` to equal "Mexico".
  Differences:
  `actual` is NULL
  `expected` is a character vector ('Mexico')
  
  ── Failure ('test-get_country_info_mx.R:48:3'): get_country_info_mx() returns data for Mexico ──
  Expected `result$capital` to equal "Mexico City".
  Differences:
  `actual` is NULL
  `expected` is a character vector ('Mexico City')
  
  ── Failure ('test-get_country_info_mx.R:49:3'): get_country_info_mx() returns data for Mexico ──
  Expected `result$region` to equal "Americas".
  Differences:
  `actual` is NULL
  `expected` is a character vector ('Americas')
  
  ── Failure ('test-get_country_info_mx.R:50:3'): get_country_info_mx() returns data for Mexico ──
  Expected `result$subregion` to equal "North America".
  Differences:
  `actual` is NULL
  `expected` is a character vector ('North America')
  
  
  [ FAIL 15 | WARN 0 | SKIP 22 | PASS 149 ]
  Error:
  ! Test failures.
  Execution halted