CRAN Package Check Results for Package MexicoDataAPI

Last updated on 2026-02-05 06:51:56 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.0 4.98 63.64 68.62 OK
r-devel-linux-x86_64-debian-gcc 0.2.0 3.42 45.13 48.55 OK
r-devel-linux-x86_64-fedora-clang 0.2.0 9.00 91.57 100.57 OK
r-devel-linux-x86_64-fedora-gcc 0.2.0 9.00 106.76 115.76 OK
r-devel-windows-x86_64 0.2.0 8.00 78.00 86.00 OK
r-patched-linux-x86_64 0.2.0 5.15 53.77 58.92 OK
r-release-linux-x86_64 0.2.0 5.19 53.86 59.05 OK
r-release-macos-arm64 0.2.0 OK
r-release-macos-x86_64 0.2.0 4.00 77.00 81.00 OK
r-release-windows-x86_64 0.2.0 8.00 233.00 241.00 OK
r-oldrel-macos-arm64 0.2.0 OK
r-oldrel-macos-x86_64 0.2.0 4.00 82.00 86.00 OK
r-oldrel-windows-x86_64 0.2.0 10.00 107.00 117.00 ERROR

Check Details

Version: 0.2.0
Check: tests
Result: ERROR Running 'testthat.R' [19s] 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 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 5 | 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 ── <curl_error_operation_timedout/curl_error/error/condition> Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [restcountries.com]: Connection timed out after 10011 milliseconds Backtrace: ▆ 1. ├─MexicoDataAPI::get_country_info_mx() at test-get_country_info_mx.R:24:3 2. │ └─httr::GET(url) 3. │ └─httr:::request_perform(req, hu$handle$handle) 4. │ ├─httr:::request_fetch(req$output, req$url, handle) 5. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle) 6. │ └─curl::curl_fetch_memory(url, handle = handle) 7. └─curl:::raise_libcurl_error(...) ── 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 5 | WARN 0 | SKIP 22 | PASS 149 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-windows-x86_64

mirror server hosted at Truenetwork, Russian Federation.