Last updated on 2026-04-29 21:49:07 CEST.
| Package | ERROR | OK |
|---|---|---|
| AlgeriAPIs | 13 | |
| ArgentinAPI | 13 | |
| BrazilDataAPI | 1 | 12 |
| CardioDataSets | 13 | |
| ChileDataAPI | 2 | 11 |
| ChinAPIs | 13 | |
| ColombiAPI | 13 | |
| crimedatasets | 13 | |
| DataSetsVerse | 13 | |
| DigestiveDataSets | 13 | |
| educationR | 13 | |
| IndiAPIs | 13 | |
| IndonesiAPIs | 13 | |
| infectiousR | 13 | |
| JapanAPIs | 13 | |
| Latamverse | 13 | |
| MedDataSets | 13 | |
| MedxR | 13 | |
| MexicoDataAPI | 1 | 12 |
| NeuroDataSets | 13 | |
| OncoDataSets | 13 | |
| PeruAPIs | 13 | |
| PulmoDataSets | 13 | |
| sampledatasets | 13 | |
| timeSeriesDataSets | 13 | |
| usdatasets | 13 |
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [7s/35s]
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.
API request failed.
Saving _problems/test-get_country_info_br-25.R
Saving _problems/test-get_country_info_br-27.R
Saving _problems/test-get_country_info_br-28.R
Saving _problems/test-get_country_info_br-29.R
Saving _problems/test-get_country_info_br-33.R
Saving _problems/test-get_country_info_br-45.R
API request failed.
Saving _problems/test-get_country_info_br-58.R
Saving _problems/test-get_country_info_br-59.R
Saving _problems/test-get_country_info_br-60.R
Saving _problems/test-get_country_info_br-61.R
Saving _problems/test-get_country_info_br-62.R
Saving _problems/test-get_country_info_br-63.R
Saving _problems/test-get_country_info_br-67.R
Saving _problems/test-get_country_info_br-75.R
API request failed.
Saving _problems/test-get_country_info_br-84.R
Saving _problems/test-get_country_info_br-85.R
API request failed.
API request failed.
API request failed.
API request failed.
API request failed.
Saving _problems/test-get_country_info_br-102.R
Saving _problems/test-get_country_info_br-103.R
Saving _problems/test-get_country_info_br-104.R
Saving _problems/test-get_country_info_br-105.R
Saving _problems/test-get_country_info_br-106.R
Saving _problems/test-get_country_info_br-107.R
Saving _problems/test-get_country_info_br-108.R
Saving _problems/test-get_country_info_br-109.R
Datasets available in the 'BrazilDataAPI' package:
Datasets available in the 'BrazilDataAPI' package:
[ FAIL 24 | WARN 0 | SKIP 150 | PASS 91 ]
══ 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 ════════════════════════════════════════════════════════════════
── Failure ('test-get_country_info_br.R:25:3'): get_country_info_br() returns tibble with correct structure ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_country_info_br.R:26:3'): get_country_info_br() returns 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_br.R:28:3'): get_country_info_br() returns 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_br.R:29:3'): get_country_info_br() returns tibble with correct structure ──
Expected `ncol(result)` to equal 8.
Differences:
`actual` is NULL
`expected` is a double vector (8)
── Error ('test-get_country_info_br.R:33:3'): get_country_info_br() returns data of correct types ──
<curl_error_ssl_connect_error/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL connect error [restcountries.com]:
TLS connect error: error:0A000126:SSL routines::unexpected eof while reading
Backtrace:
▆
1. ├─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:33: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(...)
── Error ('test-get_country_info_br.R:45:3'): get_country_info_br() returns expected values for Brazil ──
<curl_error_ssl_connect_error/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL connect error [restcountries.com]:
TLS connect error: error:0A000126:SSL routines::unexpected eof while reading
Backtrace:
▆
1. ├─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:45: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_br.R:58:3'): get_country_info_br() returns non-empty character values ──
Expected `nchar(result$name_common) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_br.R:59:3'): get_country_info_br() returns non-empty character values ──
Expected `nchar(result$name_official) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_br.R:60:3'): get_country_info_br() returns non-empty character values ──
Expected `nchar(result$region) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_br.R:61:3'): get_country_info_br() returns non-empty character values ──
Expected `nchar(result$subregion) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_br.R:62:3'): get_country_info_br() returns non-empty character values ──
Expected `nchar(result$capital) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_br.R:63:3'): get_country_info_br() returns non-empty character values ──
Expected `nchar(result$languages) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Error ('test-get_country_info_br.R:67:3'): get_country_info_br() returns positive numeric values ──
<curl_error_ssl_connect_error/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL connect error [restcountries.com]:
TLS connect error: error:0A000126:SSL routines::unexpected eof while reading
Backtrace:
▆
1. ├─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:67: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(...)
── Error ('test-get_country_info_br.R:75:3'): get_country_info_br() area is approximately correct for Brazil ──
<curl_error_ssl_connect_error/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: SSL connect error [restcountries.com]:
TLS connect error: error:0A000126:SSL routines::unexpected eof while reading
Backtrace:
▆
1. ├─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:75: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_br.R:84:3'): get_country_info_br() population is within reasonable range ──
Expected `result$population >= 2e+08` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_br.R:85:3'): get_country_info_br() population is within reasonable range ──
Expected `result$population <= 3e+08` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_br.R:102:3'): get_country_info_br() has no missing values in required fields ──
Expected `is.na(result$name_common)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_br.R:103:3'): get_country_info_br() has no missing values in required fields ──
Expected `is.na(result$name_official)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_br.R:104:3'): get_country_info_br() has no missing values in required fields ──
Expected `is.na(result$region)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_br.R:105:3'): get_country_info_br() has no missing values in required fields ──
Expected `is.na(result$subregion)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_br.R:106:3'): get_country_info_br() has no missing values in required fields ──
Expected `is.na(result$capital)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_br.R:107:3'): get_country_info_br() has no missing values in required fields ──
Expected `is.na(result$area)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_br.R:108:3'): get_country_info_br() has no missing values in required fields ──
Expected `is.na(result$population)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_br.R:109:3'): get_country_info_br() has no missing values in required fields ──
Expected `is.na(result$languages)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
[ FAIL 24 | WARN 0 | SKIP 150 | PASS 91 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: OK: 13
Current CRAN status: ERROR: 2, OK: 11
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [9s/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(ChileDataAPI)
>
> test_check("ChileDataAPI")
API request failed.
Saving _problems/test-get_country_info_cl-24.R
Saving _problems/test-get_country_info_cl-26.R
Saving _problems/test-get_country_info_cl-27.R
Saving _problems/test-get_country_info_cl-28.R
API request failed.
Saving _problems/test-get_country_info_cl-33.R
Saving _problems/test-get_country_info_cl-34.R
Saving _problems/test-get_country_info_cl-35.R
Saving _problems/test-get_country_info_cl-36.R
Saving _problems/test-get_country_info_cl-37.R
Saving _problems/test-get_country_info_cl-38.R
Saving _problems/test-get_country_info_cl-39.R
Saving _problems/test-get_country_info_cl-40.R
API request failed.
Saving _problems/test-get_country_info_cl-45.R
Saving _problems/test-get_country_info_cl-46.R
Saving _problems/test-get_country_info_cl-47.R
Saving _problems/test-get_country_info_cl-48.R
Saving _problems/test-get_country_info_cl-49.R
Saving _problems/test-get_country_info_cl-50.R
Saving _problems/test-get_country_info_cl-51.R
Saving _problems/test-get_country_info_cl-52.R
API request failed.
Saving _problems/test-get_country_info_cl-57.R
Saving _problems/test-get_country_info_cl-58.R
Saving _problems/test-get_country_info_cl-59.R
API request failed.
Saving _problems/test-get_country_info_cl-64.R
Saving _problems/test-get_country_info_cl-65.R
Saving _problems/test-get_country_info_cl-66.R
Saving _problems/test-get_country_info_cl-67.R
Saving _problems/test-get_country_info_cl-68.R
Saving _problems/test-get_country_info_cl-69.R
Saving _problems/test-get_country_info_cl-70.R
Saving _problems/test-get_country_info_cl-71.R
API request failed.
Saving _problems/test-get_country_info_cl-76.R
Saving _problems/test-get_country_info_cl-77.R
Saving _problems/test-get_country_info_cl-78.R
Saving _problems/test-get_country_info_cl-79.R
API request failed.
Saving _problems/test-get_country_info_cl-84.R
Saving _problems/test-get_country_info_cl-85.R
Saving _problems/test-get_country_info_cl-86.R
Saving _problems/test-get_country_info_cl-87.R
Saving _problems/test-get_country_info_cl-88.R
Saving _problems/test-get_country_info_cl-89.R
Datasets available in the 'ChileDataAPI' package:
Datasets available in the 'ChileDataAPI' package:
[ FAIL 41 | WARN 0 | SKIP 198 | PASS 214 ]
══ Skipped tests (198) ═════════════════════════════════════════════════════════
• On CRAN (198): 'test-get_chile_bitcoin.R:24:3',
'test-get_chile_bitcoin.R:41:3', 'test-get_chile_bitcoin.R:50:3',
'test-get_chile_child_mortality.R:23:3',
'test-get_chile_child_mortality.R:35:3',
'test-get_chile_child_mortality.R:41:3',
'test-get_chile_child_mortality.R:47:3',
'test-get_chile_child_mortality.R:54:3',
'test-get_chile_child_mortality.R:60:3',
'test-get_chile_child_mortality.R:66:3',
'test-get_chile_child_mortality.R:73:3',
'test-get_chile_child_mortality.R:79:3',
'test-get_chile_child_mortality.R:86:3',
'test-get_chile_child_mortality.R:93:3',
'test-get_chile_child_mortality.R:101:3',
'test-get_chile_child_mortality.R:110:3',
'test-get_chile_copper_pound.R:24:3', 'test-get_chile_copper_pound.R:36:3',
'test-get_chile_copper_pound.R:46:3', 'test-get_chile_copper_pound.R:55:3',
'test-get_chile_copper_pound.R:63:3', 'test-get_chile_copper_pound.R:79:3',
'test-get_chile_copper_pound.R:87:3', 'test-get_chile_copper_pound.R:95:3',
'test-get_chile_cpi.R:23:3', 'test-get_chile_cpi.R:35:3',
'test-get_chile_cpi.R:41:3', 'test-get_chile_cpi.R:47:3',
'test-get_chile_cpi.R:54:3', 'test-get_chile_cpi.R:60:3',
'test-get_chile_cpi.R:66:3', 'test-get_chile_cpi.R:73:3',
'test-get_chile_cpi.R:79:3', 'test-get_chile_cpi.R:86:3',
'test-get_chile_cpi.R:94:3', 'test-get_chile_cpi.R:101:3',
'test-get_chile_cpi.R:109:3', 'test-get_chile_cpi.R:120:3',
'test-get_chile_cpi.R:127:3', 'test-get_chile_dollar.R:24:3',
'test-get_chile_dollar.R:39:3', 'test-get_chile_dollar.R:49:3',
'test-get_chile_dollar.R:57:3', 'test-get_chile_dollar.R:65:3',
'test-get_chile_dollar.R:74:3', 'test-get_chile_dollar.R:90:3',
'test-get_chile_energy_use.R:23:3', 'test-get_chile_energy_use.R:35:3',
'test-get_chile_energy_use.R:41:3', 'test-get_chile_energy_use.R:47:3',
'test-get_chile_energy_use.R:54:3', 'test-get_chile_energy_use.R:60:3',
'test-get_chile_energy_use.R:66:3', 'test-get_chile_energy_use.R:73:3',
'test-get_chile_energy_use.R:79:3', 'test-get_chile_energy_use.R:86:3',
'test-get_chile_energy_use.R:94:3', 'test-get_chile_energy_use.R:102:3',
'test-get_chile_energy_use.R:110:3', 'test-get_chile_energy_use.R:117:3',
'test-get_chile_energy_use.R:127:3', 'test-get_chile_euro.R:24:3',
'test-get_chile_euro.R:37:3', 'test-get_chile_euro.R:47:3',
'test-get_chile_euro.R:56:3', 'test-get_chile_euro.R:66:3',
'test-get_chile_gdp.R:23:3', 'test-get_chile_gdp.R:40:3',
'test-get_chile_gdp.R:46:3', 'test-get_chile_gdp.R:52:3',
'test-get_chile_gdp.R:59:3', 'test-get_chile_gdp.R:65:3',
'test-get_chile_gdp.R:71:3', 'test-get_chile_gdp.R:78:3',
'test-get_chile_gdp.R:84:3', 'test-get_chile_gdp.R:90:3',
'test-get_chile_gdp.R:97:3', 'test-get_chile_gdp.R:105:3',
'test-get_chile_gdp.R:113:3', 'test-get_chile_gdp.R:121:3',
'test-get_chile_gdp.R:129:3', 'test-get_chile_gdp.R:140:3',
'test-get_chile_holidays.R:23:3', 'test-get_chile_holidays.R:35:3',
'test-get_chile_holidays.R:48:3', 'test-get_chile_holidays.R:56:3',
'test-get_chile_holidays.R:64:3', 'test-get_chile_holidays.R:72:3',
'test-get_chile_holidays.R:79:3', 'test-get_chile_holidays.R:86:3',
'test-get_chile_holidays.R:95:3', 'test-get_chile_holidays.R:101:3',
'test-get_chile_holidays.R:107:3', 'test-get_chile_hospital_beds.R:23:3',
'test-get_chile_hospital_beds.R:35:3', 'test-get_chile_hospital_beds.R:41:3',
'test-get_chile_hospital_beds.R:47:3', 'test-get_chile_hospital_beds.R:54:3',
'test-get_chile_hospital_beds.R:60:3', 'test-get_chile_hospital_beds.R:66:3',
'test-get_chile_hospital_beds.R:73:3', 'test-get_chile_hospital_beds.R:79:3',
'test-get_chile_hospital_beds.R:86:3', 'test-get_chile_hospital_beds.R:97:3',
'test-get_chile_hospital_beds.R:105:3',
'test-get_chile_hospital_beds.R:116:3',
'test-get_chile_hospital_beds.R:123:3',
'test-get_chile_hospital_beds.R:132:3',
'test-get_chile_hospital_beds.R:143:3', 'test-get_chile_ipsa.R:25:3',
'test-get_chile_ipsa.R:40:3', 'test-get_chile_ipsa.R:49:3',
'test-get_chile_ipsa.R:59:3', 'test-get_chile_ipsa.R:77:3',
'test-get_chile_life_expectancy.R:23:3',
'test-get_chile_life_expectancy.R:35:3',
'test-get_chile_life_expectancy.R:41:3',
'test-get_chile_life_expectancy.R:47:3',
'test-get_chile_life_expectancy.R:54:3',
'test-get_chile_life_expectancy.R:60:3',
'test-get_chile_life_expectancy.R:66:3',
'test-get_chile_life_expectancy.R:73:3',
'test-get_chile_life_expectancy.R:79:3',
'test-get_chile_life_expectancy.R:86:3',
'test-get_chile_life_expectancy.R:94:3',
'test-get_chile_life_expectancy.R:102:3',
'test-get_chile_life_expectancy.R:110:3',
'test-get_chile_life_expectancy.R:117:3',
'test-get_chile_life_expectancy.R:125:3',
'test-get_chile_life_expectancy.R:133:3',
'test-get_chile_literacy_rate.R:23:3', 'test-get_chile_literacy_rate.R:35:3',
'test-get_chile_literacy_rate.R:41:3', 'test-get_chile_literacy_rate.R:47:3',
'test-get_chile_literacy_rate.R:54:3', 'test-get_chile_literacy_rate.R:60:3',
'test-get_chile_literacy_rate.R:66:3', 'test-get_chile_literacy_rate.R:73:3',
'test-get_chile_literacy_rate.R:79:3', 'test-get_chile_literacy_rate.R:86:3',
'test-get_chile_literacy_rate.R:97:3',
'test-get_chile_literacy_rate.R:105:3',
'test-get_chile_literacy_rate.R:116:3',
'test-get_chile_literacy_rate.R:123:3',
'test-get_chile_literacy_rate.R:132:3',
'test-get_chile_literacy_rate.R:143:3',
'test-get_chile_literacy_rate.R:154:3', 'test-get_chile_population.R:23:3',
'test-get_chile_population.R:36:3', 'test-get_chile_population.R:42:3',
'test-get_chile_population.R:48:3', 'test-get_chile_population.R:55:3',
'test-get_chile_population.R:61:3', 'test-get_chile_population.R:67:3',
'test-get_chile_population.R:74:3', 'test-get_chile_population.R:80:3',
'test-get_chile_population.R:86:3', 'test-get_chile_population.R:93:3',
'test-get_chile_population.R:101:3', 'test-get_chile_population.R:109:3',
'test-get_chile_population.R:117:3', 'test-get_chile_population.R:125:3',
'test-get_chile_population.R:136:3', 'test-get_chile_population.R:145:3',
'test-get_chile_uf.R:24:3', 'test-get_chile_uf.R:39:3',
'test-get_chile_uf.R:50:3', 'test-get_chile_uf.R:60:3',
'test-get_chile_uf.R:76:3', 'test-get_chile_unemployment.R:23:3',
'test-get_chile_unemployment.R:35:3', 'test-get_chile_unemployment.R:41:3',
'test-get_chile_unemployment.R:47:3', 'test-get_chile_unemployment.R:54:3',
'test-get_chile_unemployment.R:60:3', 'test-get_chile_unemployment.R:66:3',
'test-get_chile_unemployment.R:73:3', 'test-get_chile_unemployment.R:79:3',
'test-get_chile_unemployment.R:86:3', 'test-get_chile_unemployment.R:94:3',
'test-get_chile_unemployment.R:102:3', 'test-get_chile_unemployment.R:110:3',
'test-get_chile_unemployment.R:117:3', 'test-get_chile_unemployment.R:127:3',
'test-get_chile_unemployment.R:135:3', 'test-get_chile_unemployment.R:146:3',
'test-get_chile_utm.R:24:3', 'test-get_chile_utm.R:34:3',
'test-get_chile_utm.R:45:3', 'test-get_chile_utm.R:54:3',
'test-get_chile_utm.R:64:3', 'test-get_chile_utm.R:73:3',
'test-get_chile_utm.R:89:3', 'test-get_chile_yen.R:23:3',
'test-get_chile_yen.R:35:3', 'test-get_chile_yen.R:44:3',
'test-get_chile_yen.R:58:3', 'test-get_chile_yen.R:67:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_country_info_cl.R:24:3'): get_country_info_cl() returns tibble with correct structure ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_country_info_cl.R:25:3'): get_country_info_cl() returns 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_cl.R:27:3'): get_country_info_cl() returns 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_cl.R:28:3'): get_country_info_cl() returns tibble with correct structure ──
Expected `ncol(result)` to equal 8.
Differences:
`actual` is NULL
`expected` is a double vector (8)
── Failure ('test-get_country_info_cl.R:33:3'): get_country_info_cl() returns data of correct types ──
Expected `result$name_common` to have type "character".
Actual type: "NULL"
── Failure ('test-get_country_info_cl.R:34:3'): get_country_info_cl() returns data of correct types ──
Expected `result$name_official` to have type "character".
Actual type: "NULL"
── Failure ('test-get_country_info_cl.R:35:3'): get_country_info_cl() returns data of correct types ──
Expected `result$region` to have type "character".
Actual type: "NULL"
── Failure ('test-get_country_info_cl.R:36:3'): get_country_info_cl() returns data of correct types ──
Expected `result$subregion` to have type "character".
Actual type: "NULL"
── Failure ('test-get_country_info_cl.R:37:3'): get_country_info_cl() returns data of correct types ──
Expected `result$capital` to have type "character".
Actual type: "NULL"
── Failure ('test-get_country_info_cl.R:38:3'): get_country_info_cl() returns data of correct types ──
Expected `result$area` to have type "double".
Actual type: "NULL"
── Failure ('test-get_country_info_cl.R:39:3'): get_country_info_cl() returns data of correct types ──
Expected `result$population` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_country_info_cl.R:40:3'): get_country_info_cl() returns data of correct types ──
Expected `result$languages` to have type "character".
Actual type: "NULL"
── Failure ('test-get_country_info_cl.R:45:3'): get_country_info_cl() returns expected values for Chile ──
Expected `result$name_common` to equal "Chile".
Differences:
`actual` is NULL
`expected` is a character vector ('Chile')
── Failure ('test-get_country_info_cl.R:46:3'): get_country_info_cl() returns expected values for Chile ──
Expected `result$name_official` to equal "Republic of Chile".
Differences:
`actual` is NULL
`expected` is a character vector ('Republic of Chile')
── Failure ('test-get_country_info_cl.R:47:3'): get_country_info_cl() returns expected values for Chile ──
Expected `result$region` to equal "Americas".
Differences:
`actual` is NULL
`expected` is a character vector ('Americas')
── Failure ('test-get_country_info_cl.R:48:3'): get_country_info_cl() returns expected values for Chile ──
Expected `result$subregion` to equal "South America".
Differences:
`actual` is NULL
`expected` is a character vector ('South America')
── Failure ('test-get_country_info_cl.R:49:3'): get_country_info_cl() returns expected values for Chile ──
Expected `result$capital` to equal "Santiago".
Differences:
`actual` is NULL
`expected` is a character vector ('Santiago')
── Failure ('test-get_country_info_cl.R:50:3'): get_country_info_cl() returns expected values for Chile ──
Expected `result$area > 7e+05` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:51:3'): get_country_info_cl() returns expected values for Chile ──
Expected `result$population > 1.8e+07` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:52:3'): get_country_info_cl() returns expected values for Chile ──
Expected `grepl("Spanish", result$languages)` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:57:3'): get_country_info_cl() returns consistent column structure ──
Expected `is.null(result)` to be FALSE.
Differences:
`actual`: TRUE
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:58:3'): get_country_info_cl() returns consistent column structure ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_country_info_cl.R:59:3'): get_country_info_cl() returns consistent column structure ──
Expected `length(names(result))` to equal 8.
Differences:
`actual`: 0.0
`expected`: 8.0
── Failure ('test-get_country_info_cl.R:64:3'): get_country_info_cl() returns no missing values in key fields ──
Expected `is.na(result$name_common)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:65:3'): get_country_info_cl() returns no missing values in key fields ──
Expected `is.na(result$name_official)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:66:3'): get_country_info_cl() returns no missing values in key fields ──
Expected `is.na(result$region)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:67:3'): get_country_info_cl() returns no missing values in key fields ──
Expected `is.na(result$subregion)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:68:3'): get_country_info_cl() returns no missing values in key fields ──
Expected `is.na(result$capital)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:69:3'): get_country_info_cl() returns no missing values in key fields ──
Expected `is.na(result$area)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:70:3'): get_country_info_cl() returns no missing values in key fields ──
Expected `is.na(result$population)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:71:3'): get_country_info_cl() returns no missing values in key fields ──
Expected `is.na(result$languages)` to be FALSE.
Differences:
`actual`:
`expected`: FALSE
── Failure ('test-get_country_info_cl.R:76:3'): get_country_info_cl() area and population are positive numbers ──
Expected `result$area > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:77:3'): get_country_info_cl() area and population are positive numbers ──
Expected `result$population > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:78:3'): get_country_info_cl() area and population are positive numbers ──
Expected `is.numeric(result$area)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:79:3'): get_country_info_cl() area and population are positive numbers ──
Expected `is.numeric(result$population)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:84:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$name_common) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:85:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$name_official) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:86:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$region) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:87:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$subregion) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:88:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$capital) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
── Failure ('test-get_country_info_cl.R:89:3'): get_country_info_cl() returns character strings for text fields ──
Expected `nchar(result$languages) > 0` to be TRUE.
Differences:
`actual`:
`expected`: TRUE
[ FAIL 41 | WARN 0 | SKIP 198 | PASS 214 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'ChileDataAPI_vignette.Rmd' using rmarkdown
Quitting from ChileDataAPI_vignette.Rmd:112-120 [chile-copper]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `curl::curl_fetch_memory()`:
! SSL connect error [findic.cl]:
Recv failure: Connection was reset
---
Backtrace:
▆
1. ├─utils::head(get_chile_copper_pound(), n = 10)
2. ├─ChileDataAPI::get_chile_copper_pound()
3. │ └─httr::GET(url)
4. │ └─httr:::request_perform(req, hu$handle$handle)
5. │ ├─httr:::request_fetch(req$output, req$url, handle)
6. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
7. │ └─curl::curl_fetch_memory(url, handle = handle)
8. └─curl:::raise_libcurl_error(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'ChileDataAPI_vignette.Rmd' failed with diagnostics:
SSL connect error [findic.cl]:
Recv failure: Connection was reset
--- failed re-building 'ChileDataAPI_vignette.Rmd'
SUMMARY: processing the following file failed:
'ChileDataAPI_vignette.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavor: r-oldrel-windows-x86_64
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/24s]
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 ──
<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 10002 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(...)
── Error ('test-get_country_info_mx.R:45:3'): get_country_info_mx() returns data for Mexico ──
<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 10002 milliseconds
Backtrace:
▆
1. ├─MexicoDataAPI::get_country_info_mx() at test-get_country_info_mx.R:45: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(...)
[ FAIL 2 | WARN 0 | SKIP 22 | PASS 149 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13