Last updated on 2025-12-26 17:49:02 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| AlgeriAPIs | 13 | ||
| ArgentinAPI | 9 | 4 | |
| BrazilDataAPI | 1 | 12 | |
| CardioDataSets | 13 | ||
| ChileDataAPI | 13 | ||
| ChinAPIs | 1 | 12 | |
| ColombiAPI | 1 | 3 | 9 |
| crimedatasets | 13 | ||
| DataSetsVerse | 13 | ||
| DigestiveDataSets | 13 | ||
| educationR | 13 | ||
| IndiAPIs | 13 | ||
| IndonesiAPIs | 13 | ||
| infectiousR | 13 | ||
| JapanAPIs | 13 | ||
| Latamverse | 13 | ||
| MedDataSets | 13 | ||
| MedxR | 4 | 9 | |
| MexicoDataAPI | 13 | ||
| NeuroDataSets | 13 | ||
| OncoDataSets | 13 | ||
| PeruAPIs | 13 | ||
| PulmoDataSets | 13 | ||
| sampledatasets | 13 | ||
| timeSeriesDataSets | 13 | ||
| usdatasets | 1 | 12 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 9, OK: 4
Version: 0.2.0
Check: tests
Result: ERROR
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(ArgentinAPI)
>
> test_check("ArgentinAPI")
Saving _problems/test-get_argentine_senators-49.R
Datasets available in the 'ArgentinAPI' package:
Datasets available in the 'ArgentinAPI' package:
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
══ Skipped tests (36) ══════════════════════════════════════════════════════════
• On CRAN (36): 'test-get_argentina_child_mortality.R:24:3',
'test-get_argentina_child_mortality.R:42:3',
'test-get_argentina_child_mortality.R:52:3',
'test-get_argentina_energy_use.R:23:3',
'test-get_argentina_energy_use.R:41:3',
'test-get_argentina_energy_use.R:51:3', 'test-get_argentina_gdp.R:23:3',
'test-get_argentina_gdp.R:47:3', 'test-get_argentina_hospital_beds.R:24:3',
'test-get_argentina_hospital_beds.R:36:3',
'test-get_argentina_hospital_beds.R:46:3',
'test-get_argentina_hospital_beds.R:54:3',
'test-get_argentina_hospital_beds.R:62:3',
'test-get_argentina_hospital_beds.R:69:3',
'test-get_argentina_life_expectancy.R:24:3',
'test-get_argentina_life_expectancy.R:36:3',
'test-get_argentina_life_expectancy.R:46:3',
'test-get_argentina_life_expectancy.R:54:3',
'test-get_argentina_life_expectancy.R:62:3',
'test-get_argentina_life_expectancy.R:69:3',
'test-get_argentina_population.R:24:3',
'test-get_argentina_population.R:35:3',
'test-get_argentina_population.R:46:3',
'test-get_argentina_population.R:54:3',
'test-get_argentina_population.R:62:3',
'test-get_argentina_population.R:69:3',
'test-get_argentina_population.R:77:3',
'test-get_argentina_unemployment.R:23:3',
'test-get_argentina_unemployment.R:34:3',
'test-get_argentina_unemployment.R:44:3',
'test-get_argentina_unemployment.R:53:3',
'test-get_argentina_unemployment.R:61:3',
'test-get_argentina_unemployment.R:68:3', 'test-get_country_info_ar.R:23:3',
'test-get_country_info_ar.R:50:3', 'test-get_country_info_ar.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_argentine_senators.R:49:3'): get_argentine_senators() returns a valid tibble with correct structure ──
Expected `all(diff(as.numeric(result$inicio)) <= 0)` to be TRUE.
Differences:
`actual`: <NA>
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [7s/10s]
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(ArgentinAPI)
>
> test_check("ArgentinAPI")
Saving _problems/test-get_argentine_senators-49.R
Datasets available in the 'ArgentinAPI' package:
Datasets available in the 'ArgentinAPI' package:
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
══ Skipped tests (36) ══════════════════════════════════════════════════════════
• On CRAN (36): 'test-get_argentina_child_mortality.R:24:3',
'test-get_argentina_child_mortality.R:42:3',
'test-get_argentina_child_mortality.R:52:3',
'test-get_argentina_energy_use.R:23:3',
'test-get_argentina_energy_use.R:41:3',
'test-get_argentina_energy_use.R:51:3', 'test-get_argentina_gdp.R:23:3',
'test-get_argentina_gdp.R:47:3', 'test-get_argentina_hospital_beds.R:24:3',
'test-get_argentina_hospital_beds.R:36:3',
'test-get_argentina_hospital_beds.R:46:3',
'test-get_argentina_hospital_beds.R:54:3',
'test-get_argentina_hospital_beds.R:62:3',
'test-get_argentina_hospital_beds.R:69:3',
'test-get_argentina_life_expectancy.R:24:3',
'test-get_argentina_life_expectancy.R:36:3',
'test-get_argentina_life_expectancy.R:46:3',
'test-get_argentina_life_expectancy.R:54:3',
'test-get_argentina_life_expectancy.R:62:3',
'test-get_argentina_life_expectancy.R:69:3',
'test-get_argentina_population.R:24:3',
'test-get_argentina_population.R:35:3',
'test-get_argentina_population.R:46:3',
'test-get_argentina_population.R:54:3',
'test-get_argentina_population.R:62:3',
'test-get_argentina_population.R:69:3',
'test-get_argentina_population.R:77:3',
'test-get_argentina_unemployment.R:23:3',
'test-get_argentina_unemployment.R:34:3',
'test-get_argentina_unemployment.R:44:3',
'test-get_argentina_unemployment.R:53:3',
'test-get_argentina_unemployment.R:61:3',
'test-get_argentina_unemployment.R:68:3', 'test-get_country_info_ar.R:23:3',
'test-get_country_info_ar.R:50:3', 'test-get_country_info_ar.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_argentine_senators.R:49:3'): get_argentine_senators() returns a valid tibble with correct structure ──
Expected `all(diff(as.numeric(result$inicio)) <= 0)` to be TRUE.
Differences:
`actual`: <NA>
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [16s/57s]
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(ArgentinAPI)
>
> test_check("ArgentinAPI")
Saving _problems/test-get_argentine_senators-49.R
Datasets available in the 'ArgentinAPI' package:
Datasets available in the 'ArgentinAPI' package:
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
══ Skipped tests (36) ══════════════════════════════════════════════════════════
• On CRAN (36): 'test-get_argentina_child_mortality.R:24:3',
'test-get_argentina_child_mortality.R:42:3',
'test-get_argentina_child_mortality.R:52:3',
'test-get_argentina_energy_use.R:23:3',
'test-get_argentina_energy_use.R:41:3',
'test-get_argentina_energy_use.R:51:3', 'test-get_argentina_gdp.R:23:3',
'test-get_argentina_gdp.R:47:3', 'test-get_argentina_hospital_beds.R:24:3',
'test-get_argentina_hospital_beds.R:36:3',
'test-get_argentina_hospital_beds.R:46:3',
'test-get_argentina_hospital_beds.R:54:3',
'test-get_argentina_hospital_beds.R:62:3',
'test-get_argentina_hospital_beds.R:69:3',
'test-get_argentina_life_expectancy.R:24:3',
'test-get_argentina_life_expectancy.R:36:3',
'test-get_argentina_life_expectancy.R:46:3',
'test-get_argentina_life_expectancy.R:54:3',
'test-get_argentina_life_expectancy.R:62:3',
'test-get_argentina_life_expectancy.R:69:3',
'test-get_argentina_population.R:24:3',
'test-get_argentina_population.R:35:3',
'test-get_argentina_population.R:46:3',
'test-get_argentina_population.R:54:3',
'test-get_argentina_population.R:62:3',
'test-get_argentina_population.R:69:3',
'test-get_argentina_population.R:77:3',
'test-get_argentina_unemployment.R:23:3',
'test-get_argentina_unemployment.R:34:3',
'test-get_argentina_unemployment.R:44:3',
'test-get_argentina_unemployment.R:53:3',
'test-get_argentina_unemployment.R:61:3',
'test-get_argentina_unemployment.R:68:3', 'test-get_country_info_ar.R:23:3',
'test-get_country_info_ar.R:50:3', 'test-get_country_info_ar.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_argentine_senators.R:49:3'): get_argentine_senators() returns a valid tibble with correct structure ──
Expected `all(diff(as.numeric(result$inicio)) <= 0)` to be TRUE.
Differences:
`actual`: <NA>
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [17s/37s]
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(ArgentinAPI)
>
> test_check("ArgentinAPI")
Saving _problems/test-get_argentine_senators-49.R
Datasets available in the 'ArgentinAPI' package:
Datasets available in the 'ArgentinAPI' package:
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
══ Skipped tests (36) ══════════════════════════════════════════════════════════
• On CRAN (36): 'test-get_argentina_child_mortality.R:24:3',
'test-get_argentina_child_mortality.R:42:3',
'test-get_argentina_child_mortality.R:52:3',
'test-get_argentina_energy_use.R:23:3',
'test-get_argentina_energy_use.R:41:3',
'test-get_argentina_energy_use.R:51:3', 'test-get_argentina_gdp.R:23:3',
'test-get_argentina_gdp.R:47:3', 'test-get_argentina_hospital_beds.R:24:3',
'test-get_argentina_hospital_beds.R:36:3',
'test-get_argentina_hospital_beds.R:46:3',
'test-get_argentina_hospital_beds.R:54:3',
'test-get_argentina_hospital_beds.R:62:3',
'test-get_argentina_hospital_beds.R:69:3',
'test-get_argentina_life_expectancy.R:24:3',
'test-get_argentina_life_expectancy.R:36:3',
'test-get_argentina_life_expectancy.R:46:3',
'test-get_argentina_life_expectancy.R:54:3',
'test-get_argentina_life_expectancy.R:62:3',
'test-get_argentina_life_expectancy.R:69:3',
'test-get_argentina_population.R:24:3',
'test-get_argentina_population.R:35:3',
'test-get_argentina_population.R:46:3',
'test-get_argentina_population.R:54:3',
'test-get_argentina_population.R:62:3',
'test-get_argentina_population.R:69:3',
'test-get_argentina_population.R:77:3',
'test-get_argentina_unemployment.R:23:3',
'test-get_argentina_unemployment.R:34:3',
'test-get_argentina_unemployment.R:44:3',
'test-get_argentina_unemployment.R:53:3',
'test-get_argentina_unemployment.R:61:3',
'test-get_argentina_unemployment.R:68:3', 'test-get_country_info_ar.R:23:3',
'test-get_country_info_ar.R:50:3', 'test-get_country_info_ar.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_argentine_senators.R:49:3'): get_argentine_senators() returns a valid tibble with correct structure ──
Expected `all(diff(as.numeric(result$inicio)) <= 0)` to be TRUE.
Differences:
`actual`: <NA>
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.2.0
Check: tests
Result: ERROR
Running 'testthat.R' [17s]
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(ArgentinAPI)
>
> test_check("ArgentinAPI")
Saving _problems/test-get_argentine_senators-49.R
Datasets available in the 'ArgentinAPI' package:
Datasets available in the 'ArgentinAPI' package:
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
══ Skipped tests (36) ══════════════════════════════════════════════════════════
• On CRAN (36): 'test-get_argentina_child_mortality.R:24:3',
'test-get_argentina_child_mortality.R:42:3',
'test-get_argentina_child_mortality.R:52:3',
'test-get_argentina_energy_use.R:23:3',
'test-get_argentina_energy_use.R:41:3',
'test-get_argentina_energy_use.R:51:3', 'test-get_argentina_gdp.R:23:3',
'test-get_argentina_gdp.R:47:3', 'test-get_argentina_hospital_beds.R:24:3',
'test-get_argentina_hospital_beds.R:36:3',
'test-get_argentina_hospital_beds.R:46:3',
'test-get_argentina_hospital_beds.R:54:3',
'test-get_argentina_hospital_beds.R:62:3',
'test-get_argentina_hospital_beds.R:69:3',
'test-get_argentina_life_expectancy.R:24:3',
'test-get_argentina_life_expectancy.R:36:3',
'test-get_argentina_life_expectancy.R:46:3',
'test-get_argentina_life_expectancy.R:54:3',
'test-get_argentina_life_expectancy.R:62:3',
'test-get_argentina_life_expectancy.R:69:3',
'test-get_argentina_population.R:24:3',
'test-get_argentina_population.R:35:3',
'test-get_argentina_population.R:46:3',
'test-get_argentina_population.R:54:3',
'test-get_argentina_population.R:62:3',
'test-get_argentina_population.R:69:3',
'test-get_argentina_population.R:77:3',
'test-get_argentina_unemployment.R:23:3',
'test-get_argentina_unemployment.R:34:3',
'test-get_argentina_unemployment.R:44:3',
'test-get_argentina_unemployment.R:53:3',
'test-get_argentina_unemployment.R:61:3',
'test-get_argentina_unemployment.R:68:3', 'test-get_country_info_ar.R:23:3',
'test-get_country_info_ar.R:50:3', 'test-get_country_info_ar.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_argentine_senators.R:49:3'): get_argentine_senators() returns a valid tibble with correct structure ──
Expected `all(diff(as.numeric(result$inicio)) <= 0)` to be TRUE.
Differences:
`actual`: <NA>
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
Error:
! Test failures.
Execution halted
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [10s/15s]
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(ArgentinAPI)
>
> test_check("ArgentinAPI")
Saving _problems/test-get_argentine_senators-49.R
Datasets available in the 'ArgentinAPI' package:
Datasets available in the 'ArgentinAPI' package:
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
══ Skipped tests (36) ══════════════════════════════════════════════════════════
• On CRAN (36): 'test-get_argentina_child_mortality.R:24:3',
'test-get_argentina_child_mortality.R:42:3',
'test-get_argentina_child_mortality.R:52:3',
'test-get_argentina_energy_use.R:23:3',
'test-get_argentina_energy_use.R:41:3',
'test-get_argentina_energy_use.R:51:3', 'test-get_argentina_gdp.R:23:3',
'test-get_argentina_gdp.R:47:3', 'test-get_argentina_hospital_beds.R:24:3',
'test-get_argentina_hospital_beds.R:36:3',
'test-get_argentina_hospital_beds.R:46:3',
'test-get_argentina_hospital_beds.R:54:3',
'test-get_argentina_hospital_beds.R:62:3',
'test-get_argentina_hospital_beds.R:69:3',
'test-get_argentina_life_expectancy.R:24:3',
'test-get_argentina_life_expectancy.R:36:3',
'test-get_argentina_life_expectancy.R:46:3',
'test-get_argentina_life_expectancy.R:54:3',
'test-get_argentina_life_expectancy.R:62:3',
'test-get_argentina_life_expectancy.R:69:3',
'test-get_argentina_population.R:24:3',
'test-get_argentina_population.R:35:3',
'test-get_argentina_population.R:46:3',
'test-get_argentina_population.R:54:3',
'test-get_argentina_population.R:62:3',
'test-get_argentina_population.R:69:3',
'test-get_argentina_population.R:77:3',
'test-get_argentina_unemployment.R:23:3',
'test-get_argentina_unemployment.R:34:3',
'test-get_argentina_unemployment.R:44:3',
'test-get_argentina_unemployment.R:53:3',
'test-get_argentina_unemployment.R:61:3',
'test-get_argentina_unemployment.R:68:3', 'test-get_country_info_ar.R:23:3',
'test-get_country_info_ar.R:50:3', 'test-get_country_info_ar.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_argentine_senators.R:49:3'): get_argentine_senators() returns a valid tibble with correct structure ──
Expected `all(diff(as.numeric(result$inicio)) <= 0)` to be TRUE.
Differences:
`actual`: <NA>
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
Error:
! Test failures.
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [9s/13s]
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(ArgentinAPI)
>
> test_check("ArgentinAPI")
Saving _problems/test-get_argentine_senators-49.R
Datasets available in the 'ArgentinAPI' package:
Datasets available in the 'ArgentinAPI' package:
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
══ Skipped tests (36) ══════════════════════════════════════════════════════════
• On CRAN (36): 'test-get_argentina_child_mortality.R:24:3',
'test-get_argentina_child_mortality.R:42:3',
'test-get_argentina_child_mortality.R:52:3',
'test-get_argentina_energy_use.R:23:3',
'test-get_argentina_energy_use.R:41:3',
'test-get_argentina_energy_use.R:51:3', 'test-get_argentina_gdp.R:23:3',
'test-get_argentina_gdp.R:47:3', 'test-get_argentina_hospital_beds.R:24:3',
'test-get_argentina_hospital_beds.R:36:3',
'test-get_argentina_hospital_beds.R:46:3',
'test-get_argentina_hospital_beds.R:54:3',
'test-get_argentina_hospital_beds.R:62:3',
'test-get_argentina_hospital_beds.R:69:3',
'test-get_argentina_life_expectancy.R:24:3',
'test-get_argentina_life_expectancy.R:36:3',
'test-get_argentina_life_expectancy.R:46:3',
'test-get_argentina_life_expectancy.R:54:3',
'test-get_argentina_life_expectancy.R:62:3',
'test-get_argentina_life_expectancy.R:69:3',
'test-get_argentina_population.R:24:3',
'test-get_argentina_population.R:35:3',
'test-get_argentina_population.R:46:3',
'test-get_argentina_population.R:54:3',
'test-get_argentina_population.R:62:3',
'test-get_argentina_population.R:69:3',
'test-get_argentina_population.R:77:3',
'test-get_argentina_unemployment.R:23:3',
'test-get_argentina_unemployment.R:34:3',
'test-get_argentina_unemployment.R:44:3',
'test-get_argentina_unemployment.R:53:3',
'test-get_argentina_unemployment.R:61:3',
'test-get_argentina_unemployment.R:68:3', 'test-get_country_info_ar.R:23:3',
'test-get_country_info_ar.R:50:3', 'test-get_country_info_ar.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_argentine_senators.R:49:3'): get_argentine_senators() returns a valid tibble with correct structure ──
Expected `all(diff(as.numeric(result$inicio)) <= 0)` to be TRUE.
Differences:
`actual`: <NA>
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running 'testthat.R' [23s]
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(ArgentinAPI)
>
> test_check("ArgentinAPI")
Saving _problems/test-get_argentine_senators-49.R
Datasets available in the 'ArgentinAPI' package:
Datasets available in the 'ArgentinAPI' package:
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
══ Skipped tests (36) ══════════════════════════════════════════════════════════
• On CRAN (36): 'test-get_argentina_child_mortality.R:24:3',
'test-get_argentina_child_mortality.R:42:3',
'test-get_argentina_child_mortality.R:52:3',
'test-get_argentina_energy_use.R:23:3',
'test-get_argentina_energy_use.R:41:3',
'test-get_argentina_energy_use.R:51:3', 'test-get_argentina_gdp.R:23:3',
'test-get_argentina_gdp.R:47:3', 'test-get_argentina_hospital_beds.R:24:3',
'test-get_argentina_hospital_beds.R:36:3',
'test-get_argentina_hospital_beds.R:46:3',
'test-get_argentina_hospital_beds.R:54:3',
'test-get_argentina_hospital_beds.R:62:3',
'test-get_argentina_hospital_beds.R:69:3',
'test-get_argentina_life_expectancy.R:24:3',
'test-get_argentina_life_expectancy.R:36:3',
'test-get_argentina_life_expectancy.R:46:3',
'test-get_argentina_life_expectancy.R:54:3',
'test-get_argentina_life_expectancy.R:62:3',
'test-get_argentina_life_expectancy.R:69:3',
'test-get_argentina_population.R:24:3',
'test-get_argentina_population.R:35:3',
'test-get_argentina_population.R:46:3',
'test-get_argentina_population.R:54:3',
'test-get_argentina_population.R:62:3',
'test-get_argentina_population.R:69:3',
'test-get_argentina_population.R:77:3',
'test-get_argentina_unemployment.R:23:3',
'test-get_argentina_unemployment.R:34:3',
'test-get_argentina_unemployment.R:44:3',
'test-get_argentina_unemployment.R:53:3',
'test-get_argentina_unemployment.R:61:3',
'test-get_argentina_unemployment.R:68:3', 'test-get_country_info_ar.R:23:3',
'test-get_country_info_ar.R:50:3', 'test-get_country_info_ar.R:75:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_argentine_senators.R:49:3'): get_argentine_senators() returns a valid tibble with correct structure ──
Expected `all(diff(as.numeric(result$inicio)) <= 0)` to be TRUE.
Differences:
`actual`: <NA>
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 36 | PASS 262 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64
Current CRAN status: ERROR: 1, OK: 12
Version: 0.2.0
Check: tests
Result: ERROR
Running 'testthat.R' [75s]
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
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 16 | 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 ════════════════════════════════════════════════════════════════
── Error ('test-get_country_info_br.R:24:3'): get_country_info_br() returns 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 10004 milliseconds
Backtrace:
▆
1. ├─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.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_br.R:33:3'): get_country_info_br() returns data of correct types ──
<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. ├─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_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. ├─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(...)
── Error ('test-get_country_info_br.R:57:3'): get_country_info_br() returns non-empty character values ──
<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 10006 milliseconds
Backtrace:
▆
1. ├─BrazilDataAPI::get_country_info_br() at test-get_country_info_br.R:57: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:67:3'): get_country_info_br() returns positive numeric values ──
<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 10007 milliseconds
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_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [restcountries.com]:
Connection timed out after 10005 milliseconds
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 16 | WARN 0 | SKIP 150 | PASS 91 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 0.1.0
Check: tests
Result: ERROR
Running 'testthat.R' [31s]
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(ChinAPIs)
>
> test_check("ChinAPIs")
Error: status 502
Saving _problems/test-get_china_cpi-16.R
Saving _problems/test-get_china_cpi-17.R
Saving _problems/test-get_china_cpi-22.R
Saving _problems/test-get_china_cpi-27.R
Saving _problems/test-get_china_cpi-35.R
Saving _problems/test-get_china_cpi-40.R
Saving _problems/test-get_china_cpi-41.R
Saving _problems/test-get_china_cpi-42.R
Saving _problems/test-get_china_cpi-43.R
Saving _problems/test-get_china_cpi-60.R
Saving _problems/test-get_china_cpi-65.R
Saving _problems/test-get_china_cpi-81.R
Saving _problems/test-get_china_cpi-87.R
Error: status 502
Saving _problems/test-get_china_hospital_beds-15.R
Saving _problems/test-get_china_hospital_beds-16.R
Saving _problems/test-get_china_hospital_beds-19.R
Saving _problems/test-get_china_hospital_beds-20.R
Saving _problems/test-get_china_hospital_beds-21.R
Saving _problems/test-get_china_hospital_beds-22.R
Error: status 502
Error: status 502
Error: status 502
Saving _problems/test-get_china_hospital_beds-37.R
Error: status 502
Error: status 502
Saving _problems/test-get_china_hospital_beds-47.R
Error: status 502
Error: status 502
Saving _problems/test-get_china_hospital_beds-57.R
Error: status 502
Error: status 502
Error: status 502
Saving _problems/test-get_china_hospital_beds-72.R
Error: status 502
Saving _problems/test-get_china_hospital_beds-77.R
Error: status 502
Saving _problems/test-get_china_life_expectancy-15.R
Saving _problems/test-get_china_life_expectancy-18.R
Saving _problems/test-get_china_life_expectancy-22.R
Saving _problems/test-get_china_life_expectancy-25.R
Saving _problems/test-get_china_life_expectancy-26.R
Saving _problems/test-get_china_life_expectancy-27.R
Saving _problems/test-get_china_life_expectancy-28.R
Error: status 502
Saving _problems/test-get_china_literacy_rate-15.R
Saving _problems/test-get_china_literacy_rate-18.R
Saving _problems/test-get_china_literacy_rate-21.R
Saving _problems/test-get_china_literacy_rate-22.R
Saving _problems/test-get_china_literacy_rate-23.R
Saving _problems/test-get_china_literacy_rate-24.R
Saving _problems/test-get_china_literacy_rate-36.R
Saving _problems/test-get_china_literacy_rate-39.R
Error: status 502
Saving _problems/test-get_china_population-15.R
Saving _problems/test-get_china_population-18.R
Saving _problems/test-get_china_population-22.R
Saving _problems/test-get_china_population-25.R
Saving _problems/test-get_china_population-26.R
Saving _problems/test-get_china_population-27.R
Saving _problems/test-get_china_population-28.R
Saving _problems/test-get_china_population-29.R
Saving _problems/test-get_china_population-41.R
Error: status 502
Saving _problems/test-get_china_unemployment-16.R
Saving _problems/test-get_china_unemployment-17.R
Saving _problems/test-get_china_unemployment-22.R
Saving _problems/test-get_china_unemployment-27.R
Saving _problems/test-get_china_unemployment-35.R
Saving _problems/test-get_china_unemployment-40.R
Saving _problems/test-get_china_unemployment-41.R
Saving _problems/test-get_china_unemployment-42.R
Saving _problems/test-get_china_unemployment-43.R
Saving _problems/test-get_china_unemployment-60.R
Saving _problems/test-get_china_unemployment-65.R
Saving _problems/test-get_china_unemployment-94.R
Saving _problems/test-get_china_unemployment-95.R
Saving _problems/test-get_china_unemployment-105.R
Datasets available in the 'ChinAPIs' package:
Datasets available in the 'ChinAPIs' package:
[ FAIL 62 | WARN 1 | SKIP 18 | PASS 3990 ]
══ Skipped tests (18) ══════════════════════════════════════════════════════════
• On CRAN (18): 'test-get_china_child_mortality.R:13:3',
'test-get_china_child_mortality.R:33:3',
'test-get_china_child_mortality.R:40:3',
'test-get_china_child_mortality.R:47:3', 'test-get_china_energy_use.R:13:3',
'test-get_china_energy_use.R:33:3', 'test-get_china_energy_use.R:40:3',
'test-get_china_energy_use.R:47:3', 'test-get_china_gdp.R:13:3',
'test-get_china_gdp.R:34:3', 'test-get_china_gdp.R:41:3',
'test-get_china_gdp.R:48:3', 'test-get_china_gdp.R:56:3',
'test-get_china_holidays.R:12:3', 'test-get_china_holidays.R:33:3',
'test-get_country_info_cn.R:13:3', 'test-get_country_info_cn.R:42:3',
'test-get_country_info_cn.R:56:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_china_cpi.R:16:3'): get_china_cpi returns a tibble/data frame ──
Expected `china_cpi_data` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_china_cpi.R:17:3'): get_china_cpi returns a tibble/data frame ──
Expected `china_cpi_data` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_china_cpi.R:22:3'): get_china_cpi returns data with exactly 4 columns ──
Expected `ncol(china_cpi_data)` to equal 4.
Differences:
`actual` is NULL
`expected` is a double vector (4)
── Failure ('test-get_china_cpi.R:27:3'): get_china_cpi returns data with exactly 13 rows ──
Expected `nrow(china_cpi_data)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_china_cpi.R:32:3'): get_china_cpi returns data with correct column names ──
Expected `names(china_cpi_data)` to equal `c("indicator", "country", "year", "value")`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value')
── Failure ('test-get_china_cpi.R:40:3'): get_china_cpi returns data with correct column types ──
Expected `china_cpi_data$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_cpi.R:41:3'): get_china_cpi returns data with correct column types ──
Expected `china_cpi_data$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_cpi.R:42:3'): get_china_cpi returns data with correct column types ──
Expected `china_cpi_data$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_china_cpi.R:43:3'): get_china_cpi returns data with correct column types ──
Expected `china_cpi_data$value` to have type "double".
Actual type: "NULL"
── Failure ('test-get_china_cpi.R:60:3'): get_china_cpi year column covers 2010-2022 completely ──
Expected `actual_years` to equal `expected_years`.
Differences:
`actual` is NULL
`expected` is an integer vector (2010, 2011, 2012, 2013, 2014, ...)
── Failure ('test-get_china_cpi.R:65:3'): get_china_cpi year column has no duplicate years ──
Expected `length(unique(china_cpi_data$year))` to equal 13.
Differences:
`actual`: 0.0
`expected`: 13.0
── Failure ('test-get_china_cpi.R:81:3'): get_china_cpi shows 2010 baseline value as 100 ──
Expected `baseline_value` to equal 100.
Differences:
`actual` is NULL
`expected` is a double vector (100)
── Error ('test-get_china_cpi.R:87:3'): get_china_cpi values show realistic CPI progression ──
Error in `order(china_cpi_data$year)`: argument 1 is not a vector
Backtrace:
▆
1. └─base::order(china_cpi_data$year) at test-get_china_cpi.R:87:3
── Failure ('test-get_china_hospital_beds.R:15:3'): get_china_hospital_beds returns a tibble with correct structure and types ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_china_hospital_beds.R:16:3'): get_china_hospital_beds returns a tibble with correct structure and types ──
Expected `result` to have names `c("indicator", "country", "year", "value")`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value')
── Failure ('test-get_china_hospital_beds.R:19:3'): get_china_hospital_beds returns a tibble with correct structure and types ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_hospital_beds.R:20:3'): get_china_hospital_beds returns a tibble with correct structure and types ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_hospital_beds.R:21:3'): get_china_hospital_beds returns a tibble with correct structure and types ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_china_hospital_beds.R:22:3'): get_china_hospital_beds returns a tibble with correct structure and types ──
Expected `result$value` to have type "double".
Actual type: "NULL"
── Failure ('test-get_china_hospital_beds.R:37:3'): get_china_hospital_beds returns 13 rows (one per year) ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_china_hospital_beds.R:47:3'): get_china_hospital_beds allows for missing values (e.g., NA) ──
Expected `any(is.na(result$value))` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_china_hospital_beds.R:57:3'): get_china_hospital_beds returns a numeric vector in the value column ──
Expected `result$value` to have type "double".
Actual type: "NULL"
── Failure ('test-get_china_hospital_beds.R:72:3'): get_china_hospital_beds: indicator is consistent across all rows ──
Expected `length(unique(result$indicator))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_china_hospital_beds.R:77:3'): get_china_hospital_beds: country is consistent across all rows ──
Expected `length(unique(result$country))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_china_life_expectancy.R:15:3'): get_china_life_expectancy returns a tibble with correct structure and values ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_china_life_expectancy.R:18:3'): get_china_life_expectancy returns a tibble with correct structure and values ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_china_life_expectancy.R:22:3'): get_china_life_expectancy returns a tibble with correct structure and values ──
Expected `result` to have names `expected_names`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value')
── Failure ('test-get_china_life_expectancy.R:25:3'): get_china_life_expectancy returns a tibble with correct structure and values ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_life_expectancy.R:26:3'): get_china_life_expectancy returns a tibble with correct structure and values ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_life_expectancy.R:27:3'): get_china_life_expectancy returns a tibble with correct structure and values ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_china_life_expectancy.R:28:3'): get_china_life_expectancy returns a tibble with correct structure and values ──
Expected `result$value` to have type "double".
Actual type: "NULL"
── Failure ('test-get_china_literacy_rate.R:15:3'): get_china_literacy_rate() returns valid structure and types ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_china_literacy_rate.R:18:3'): get_china_literacy_rate() returns valid structure and types ──
Expected `result` to have names `c("indicator", "country", "year", "value")`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value')
── Failure ('test-get_china_literacy_rate.R:21:3'): get_china_literacy_rate() returns valid structure and types ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_literacy_rate.R:22:3'): get_china_literacy_rate() returns valid structure and types ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_literacy_rate.R:23:3'): get_china_literacy_rate() returns valid structure and types ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_china_literacy_rate.R:24:3'): get_china_literacy_rate() returns valid structure and types ──
Expected `is.numeric(result$value) || is.integer(result$value)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_china_literacy_rate.R:36:3'): get_china_literacy_rate() returns valid structure and types ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_china_literacy_rate.R:39:3'): get_china_literacy_rate() returns valid structure and types ──
Expected `any(is.na(result$value)) || any(!is.na(result$value))` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_china_population.R:15:3'): get_china_population() returns correct structure and types ──
Expected `is.null(result)` to be FALSE.
Differences:
`actual`: TRUE
`expected`: FALSE
── Failure ('test-get_china_population.R:18:3'): get_china_population() returns correct structure and types ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_china_population.R:22:3'): get_china_population() returns correct structure and types ──
Expected `result` to have names `expected_cols`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value', 'value_label')
── Failure ('test-get_china_population.R:25:3'): get_china_population() returns correct structure and types ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_population.R:26:3'): get_china_population() returns correct structure and types ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_population.R:27:3'): get_china_population() returns correct structure and types ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_china_population.R:28:3'): get_china_population() returns correct structure and types ──
Expected `is.numeric(result$value) || is.integer(result$value)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_china_population.R:29:3'): get_china_population() returns correct structure and types ──
Expected `result$value_label` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_population.R:41:3'): get_china_population() returns correct structure and types ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_china_unemployment.R:16:3'): get_china_unemployment returns a tibble/data frame ──
Expected `china_unemployment_data` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_china_unemployment.R:17:3'): get_china_unemployment returns a tibble/data frame ──
Expected `china_unemployment_data` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_china_unemployment.R:22:3'): get_china_unemployment returns data with exactly 4 columns ──
Expected `ncol(china_unemployment_data)` to equal 4.
Differences:
`actual` is NULL
`expected` is a double vector (4)
── Failure ('test-get_china_unemployment.R:27:3'): get_china_unemployment returns data with exactly 13 rows ──
Expected `nrow(china_unemployment_data)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_china_unemployment.R:32:3'): get_china_unemployment returns data with correct column names ──
Expected `names(china_unemployment_data)` to equal `c("indicator", "country", "year", "value")`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value')
── Failure ('test-get_china_unemployment.R:40:3'): get_china_unemployment returns data with correct column types ──
Expected `china_unemployment_data$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_unemployment.R:41:3'): get_china_unemployment returns data with correct column types ──
Expected `china_unemployment_data$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_china_unemployment.R:42:3'): get_china_unemployment returns data with correct column types ──
Expected `china_unemployment_data$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_china_unemployment.R:43:3'): get_china_unemployment returns data with correct column types ──
Expected `china_unemployment_data$value` to have type "double".
Actual type: "NULL"
── Failure ('test-get_china_unemployment.R:60:3'): get_china_unemployment year column covers 2010-2022 completely ──
Expected `actual_years` to equal `expected_years`.
Differences:
`actual` is NULL
`expected` is an integer vector (2010, 2011, 2012, 2013, 2014, ...)
── Failure ('test-get_china_unemployment.R:65:3'): get_china_unemployment year column has no duplicate years ──
Expected `length(unique(china_unemployment_data$year))` to equal 13.
Differences:
`actual`: 0.0
`expected`: 13.0
── Failure ('test-get_china_unemployment.R:94:3'): get_china_unemployment shows expected COVID-19 impact in 2020 ──
Expected `year_of_max` to equal 2020.
Differences:
`actual` is NULL
`expected` is a double vector (2020)
── Failure ('test-get_china_unemployment.R:95:3'): get_china_unemployment shows expected COVID-19 impact in 2020 ──
Expected `max_unemployment` to equal 5.
Differences:
`actual`: -Inf
`expected`: 5.0
── Error ('test-get_china_unemployment.R:105:3'): get_china_unemployment values show typical stability for China ──
Error in `var(china_unemployment_data$value)`: 'x' is NULL
Backtrace:
▆
1. └─stats::var(china_unemployment_data$value) at test-get_china_unemployment.R:105:3
[ FAIL 62 | WARN 1 | SKIP 18 | PASS 3990 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Current CRAN status: ERROR: 1, NOTE: 3, OK: 9
Version: 0.3.1
Check: tests
Result: ERROR
Running 'testthat.R' [25s]
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(ColombiAPI)
>
> test_check("ColombiAPI")
Error: status 502
Saving _problems/test-get_colombia_hospital_beds-26.R
Saving _problems/test-get_colombia_hospital_beds-29.R
Saving _problems/test-get_colombia_hospital_beds-32.R
Saving _problems/test-get_colombia_hospital_beds-35.R
Saving _problems/test-get_colombia_hospital_beds-36.R
Saving _problems/test-get_colombia_hospital_beds-37.R
Saving _problems/test-get_colombia_hospital_beds-38.R
Saving _problems/test-get_colombia_hospital_beds-50.R
Saving _problems/test-get_colombia_hospital_beds-53.R
Error: status 502
Saving _problems/test-get_colombia_hospital_beds-61.R
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Saving _problems/test-get_colombia_hospital_beds-92.R
Saving _problems/test-get_colombia_hospital_beds-95.R
Error: status 502
Saving _problems/test-get_colombia_hospital_beds-102.R
Error: status 502
Error: status 502
Saving _problems/test-get_colombia_population-26.R
Saving _problems/test-get_colombia_population-29.R
Saving _problems/test-get_colombia_population-32.R
Saving _problems/test-get_colombia_population-35.R
Saving _problems/test-get_colombia_population-36.R
Saving _problems/test-get_colombia_population-37.R
Saving _problems/test-get_colombia_population-38.R
Saving _problems/test-get_colombia_population-39.R
Saving _problems/test-get_colombia_population-51.R
Saving _problems/test-get_colombia_population-54.R
Error: status 502
Saving _problems/test-get_colombia_population-62.R
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Saving _problems/test-get_colombia_population-93.R
Saving _problems/test-get_colombia_population-96.R
Error: status 502
Saving _problems/test-get_colombia_population-103.R
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Saving _problems/test-get_colombia_population-145.R
Error: status 502
Error: status 502
Saving _problems/test-get_colombia_unemployment-26.R
Saving _problems/test-get_colombia_unemployment-29.R
Saving _problems/test-get_colombia_unemployment-32.R
Saving _problems/test-get_colombia_unemployment-35.R
Saving _problems/test-get_colombia_unemployment-36.R
Saving _problems/test-get_colombia_unemployment-37.R
Saving _problems/test-get_colombia_unemployment-38.R
Saving _problems/test-get_colombia_unemployment-50.R
Saving _problems/test-get_colombia_unemployment-53.R
Error: status 502
Saving _problems/test-get_colombia_unemployment-61.R
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Saving _problems/test-get_colombia_unemployment-92.R
Saving _problems/test-get_colombia_unemployment-95.R
Error: status 502
Saving _problems/test-get_colombia_unemployment-102.R
Error: status 502
Error: status 502
Saving _problems/test-get_colombia_unemployment-120.R
Saving _problems/test-get_colombia_unemployment-121.R
Error: status 502
Datasets available in the 'ColombiAPI' package:
Datasets available in the 'ColombiAPI' package:
[ FAIL 43 | WARN 0 | SKIP 190 | PASS 572 ]
══ Skipped tests (190) ═════════════════════════════════════════════════════════
• On CRAN (183): 'test-get_colombia_airports.R:24:3',
'test-get_colombia_airports.R:36:3', 'test-get_colombia_airports.R:51:3',
'test-get_colombia_airports.R:60:3', 'test-get_colombia_airports.R:68:3',
'test-get_colombia_airports.R:80:3', 'test-get_colombia_airports.R:92:3',
'test-get_colombia_airports.R:104:3', 'test-get_colombia_airports.R:112:3',
'test-get_colombia_airports.R:121:3', 'test-get_colombia_airports.R:142:3',
'test-get_colombia_airports.R:156:3', 'test-get_colombia_airports.R:166:3',
'test-get_colombia_airports.R:176:3', 'test-get_colombia_airports.R:186:3',
'test-get_colombia_airports.R:198:3', 'test-get_colombia_attractions.R:24:3',
'test-get_colombia_attractions.R:35:3',
'test-get_colombia_attractions.R:47:3',
'test-get_colombia_attractions.R:55:3',
'test-get_colombia_attractions.R:66:3',
'test-get_colombia_attractions.R:75:3',
'test-get_colombia_attractions.R:84:3',
'test-get_colombia_attractions.R:101:3',
'test-get_colombia_attractions.R:113:3',
'test-get_colombia_attractions.R:123:3',
'test-get_colombia_attractions.R:133:3',
'test-get_colombia_attractions.R:142:3',
'test-get_colombia_attractions.R:152:3',
'test-get_colombia_attractions.R:163:3',
'test-get_colombia_attractions.R:171:3',
'test-get_colombia_attractions.R:185:3',
'test-get_colombia_child_mortality.R:23:3',
'test-get_colombia_child_mortality.R:38:3',
'test-get_colombia_child_mortality.R:47:3',
'test-get_colombia_child_mortality.R:55:3',
'test-get_colombia_child_mortality.R:63:3',
'test-get_colombia_child_mortality.R:71:3',
'test-get_colombia_child_mortality.R:79:3',
'test-get_colombia_cities.R:23:3', 'test-get_colombia_cities.R:34:3',
'test-get_colombia_cities.R:42:3', 'test-get_colombia_cities.R:51:3',
'test-get_colombia_cities.R:63:3', 'test-get_colombia_cities.R:81:3',
'test-get_colombia_cities.R:93:3', 'test-get_colombia_cities.R:102:3',
'test-get_colombia_cities.R:116:3', 'test-get_colombia_cities.R:126:3',
'test-get_colombia_cities.R:134:3', 'test-get_colombia_cities.R:142:3',
'test-get_colombia_cities.R:152:3', 'test-get_colombia_cities.R:160:3',
'test-get_colombia_cpi.R:24:3', 'test-get_colombia_cpi.R:39:3',
'test-get_colombia_cpi.R:48:3', 'test-get_colombia_cpi.R:56:3',
'test-get_colombia_cpi.R:64:3', 'test-get_colombia_cpi.R:72:3',
'test-get_colombia_cpi.R:80:3', 'test-get_colombia_cpi.R:88:3',
'test-get_colombia_departments.R:24:3',
'test-get_colombia_departments.R:36:3',
'test-get_colombia_departments.R:50:3',
'test-get_colombia_departments.R:59:3',
'test-get_colombia_departments.R:68:3',
'test-get_colombia_departments.R:76:3',
'test-get_colombia_departments.R:88:3',
'test-get_colombia_departments.R:102:3',
'test-get_colombia_departments.R:119:3',
'test-get_colombia_departments.R:133:3',
'test-get_colombia_departments.R:145:3',
'test-get_colombia_departments.R:155:3',
'test-get_colombia_departments.R:167:3',
'test-get_colombia_departments.R:179:3',
'test-get_colombia_departments.R:191:3',
'test-get_colombia_energy_use.R:23:3', 'test-get_colombia_energy_use.R:38:3',
'test-get_colombia_energy_use.R:47:3', 'test-get_colombia_energy_use.R:55:3',
'test-get_colombia_energy_use.R:63:3', 'test-get_colombia_energy_use.R:71:3',
'test-get_colombia_energy_use.R:79:3', 'test-get_colombia_energy_use.R:87:3',
'test-get_colombia_gdp.R:23:3', 'test-get_colombia_gdp.R:39:3',
'test-get_colombia_gdp.R:48:3', 'test-get_colombia_gdp.R:56:3',
'test-get_colombia_gdp.R:64:3', 'test-get_colombia_gdp.R:72:3',
'test-get_colombia_gdp.R:80:3', 'test-get_colombia_gdp.R:88:3',
'test-get_colombia_gdp.R:97:3', 'test-get_colombia_holidays.R:24:3',
'test-get_colombia_holidays.R:39:3', 'test-get_colombia_holidays.R:54:3',
'test-get_colombia_holidays.R:64:3', 'test-get_colombia_holidays.R:74:3',
'test-get_colombia_invasive_species.R:24:3',
'test-get_colombia_invasive_species.R:36:3',
'test-get_colombia_invasive_species.R:50:3',
'test-get_colombia_invasive_species.R:59:3',
'test-get_colombia_invasive_species.R:68:3',
'test-get_colombia_invasive_species.R:79:3',
'test-get_colombia_life_expectancy.R:24:3',
'test-get_colombia_life_expectancy.R:55:3',
'test-get_colombia_life_expectancy.R:65:3',
'test-get_colombia_life_expectancy.R:74:3',
'test-get_colombia_life_expectancy.R:84:3',
'test-get_colombia_life_expectancy.R:93:3',
'test-get_colombia_life_expectancy.R:103:3',
'test-get_colombia_life_expectancy.R:112:3',
'test-get_colombia_life_expectancy.R:126:3',
'test-get_colombia_life_expectancy.R:136:3',
'test-get_colombia_life_expectancy.R:150:3',
'test-get_colombia_literacy_rate.R:24:3',
'test-get_colombia_literacy_rate.R:50:3',
'test-get_colombia_literacy_rate.R:57:3',
'test-get_colombia_literacy_rate.R:64:3',
'test-get_colombia_literacy_rate.R:72:3',
'test-get_colombia_literacy_rate.R:79:3',
'test-get_colombia_literacy_rate.R:86:3',
'test-get_colombia_literacy_rate.R:94:3',
'test-get_colombia_literacy_rate.R:101:3',
'test-get_colombia_literacy_rate.R:109:3',
'test-get_colombia_literacy_rate.R:121:3',
'test-get_colombia_literacy_rate.R:130:3',
'test-get_colombia_literacy_rate.R:141:3',
'test-get_colombia_native_communities.R:24:3',
'test-get_colombia_native_communities.R:35:3',
'test-get_colombia_native_communities.R:46:3',
'test-get_colombia_native_communities.R:55:3',
'test-get_colombia_native_communities.R:64:3',
'test-get_colombia_natural_areas.R:24:3',
'test-get_colombia_natural_areas.R:36:3',
'test-get_colombia_natural_areas.R:50:3',
'test-get_colombia_natural_areas.R:64:3',
'test-get_colombia_natural_areas.R:76:3',
'test-get_colombia_presidents.R:24:3', 'test-get_colombia_presidents.R:36:3',
'test-get_colombia_presidents.R:48:3', 'test-get_colombia_presidents.R:57:3',
'test-get_colombia_presidents.R:67:3', 'test-get_colombia_presidents.R:79:3',
'test-get_colombia_presidents.R:92:3',
'test-get_colombia_presidents.R:116:3',
'test-get_colombia_presidents.R:130:3',
'test-get_colombia_presidents.R:140:3',
'test-get_colombia_presidents.R:149:3',
'test-get_colombia_presidents.R:165:3',
'test-get_colombia_presidents.R:174:3', 'test-get_colombia_radios.R:23:3',
'test-get_colombia_radios.R:34:3', 'test-get_colombia_radios.R:45:3',
'test-get_colombia_radios.R:54:3', 'test-get_colombia_radios.R:64:3',
'test-get_colombia_radios.R:73:3', 'test-get_colombia_regions.R:23:3',
'test-get_colombia_regions.R:34:3', 'test-get_colombia_regions.R:43:3',
'test-get_colombia_regions.R:52:3', 'test-get_colombia_regions.R:61:3',
'test-get_colombia_regions.R:70:3', 'test-get_colombia_regions.R:87:3',
'test-get_colombia_regions.R:99:3', 'test-get_colombia_regions.R:108:3',
'test-get_colombia_regions.R:120:3', 'test-get_colombia_regions.R:139:3',
'test-get_colombia_typical_dishes.R:24:3',
'test-get_colombia_typical_dishes.R:35:3',
'test-get_colombia_typical_dishes.R:45:3',
'test-get_colombia_typical_dishes.R:55:3',
'test-get_colombia_typical_dishes.R:65:3',
'test-get_colombia_typical_dishes.R:73:3', 'test-get_country_info_co.R:23:3',
'test-get_country_info_co.R:35:3', 'test-get_country_info_co.R:49:3',
'test-get_country_info_co.R:63:3', 'test-get_country_info_co.R:73:3',
'test-get_country_info_co.R:83:3', 'test-get_country_info_co.R:103:3',
'test-get_country_info_co.R:116:3', 'test-get_country_info_co.R:126:3'
• empty test (7): 'test-get_colombia_hospital_beds.R:105:1',
'test-get_colombia_population.R:106:1',
'test-get_colombia_population.R:116:1',
'test-get_colombia_population.R:126:1',
'test-get_colombia_population.R:148:1',
'test-get_colombia_unemployment.R:105:1',
'test-get_colombia_unemployment.R:124:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_colombia_hospital_beds.R:26:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `is.null(result)` to be FALSE.
Differences:
`actual`: TRUE
`expected`: FALSE
── Failure ('test-get_colombia_hospital_beds.R:29:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_colombia_hospital_beds.R:32:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `result` to have names `c("indicator", "country", "year", "value")`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value')
── Failure ('test-get_colombia_hospital_beds.R:35:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_colombia_hospital_beds.R:36:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_colombia_hospital_beds.R:37:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_colombia_hospital_beds.R:38:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `result$value` to have type "double".
Actual type: "NULL"
── Failure ('test-get_colombia_hospital_beds.R:50:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_colombia_hospital_beds.R:53:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Expected `ncol(result)` to equal 4.
Differences:
`actual` is NULL
`expected` is a double vector (4)
── Failure ('test-get_colombia_hospital_beds.R:61:3'): get_colombia_hospital_beds() returns data for years 2010 to 2022 ──
Expected `sort(unique(result$year))` to equal `2010:2022`.
Differences:
`actual` is NULL
`expected` is an integer vector (2010, 2011, 2012, 2013, 2014, ...)
── Failure ('test-get_colombia_hospital_beds.R:92:3'): get_colombia_hospital_beds() indicator and country are consistent across rows ──
Expected `length(unique(result$indicator))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_colombia_hospital_beds.R:95:3'): get_colombia_hospital_beds() indicator and country are consistent across rows ──
Expected `length(unique(result$country))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_colombia_hospital_beds.R:102:3'): get_colombia_hospital_beds() returns exactly 13 rows for the specified period ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_colombia_population.R:26:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `is.null(result)` to be FALSE.
Differences:
`actual`: TRUE
`expected`: FALSE
── Failure ('test-get_colombia_population.R:29:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_colombia_population.R:32:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `result` to have names `c("indicator", "country", "year", "value", "value_label")`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value', 'value_label')
── Failure ('test-get_colombia_population.R:35:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_colombia_population.R:36:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_colombia_population.R:37:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_colombia_population.R:38:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `result$value` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_colombia_population.R:39:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `result$value_label` to have type "character".
Actual type: "NULL"
── Failure ('test-get_colombia_population.R:51:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_colombia_population.R:54:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Expected `ncol(result)` to equal 5.
Differences:
`actual` is NULL
`expected` is a double vector (5)
── Failure ('test-get_colombia_population.R:62:3'): get_colombia_population() returns data for years 2010 to 2022 ──
Expected `sort(unique(result$year))` to equal `2010:2022`.
Differences:
`actual` is NULL
`expected` is an integer vector (2010, 2011, 2012, 2013, 2014, ...)
── Failure ('test-get_colombia_population.R:93:3'): get_colombia_population() indicator and country are consistent across rows ──
Expected `length(unique(result$indicator))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_colombia_population.R:96:3'): get_colombia_population() indicator and country are consistent across rows ──
Expected `length(unique(result$country))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_colombia_population.R:103:3'): get_colombia_population() returns exactly 13 rows for the specified period ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_colombia_population.R:145:3'): get_colombia_population() value column is integer ──
Expected `is.integer(result$value)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_colombia_unemployment.R:26:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `is.null(result)` to be FALSE.
Differences:
`actual`: TRUE
`expected`: FALSE
── Failure ('test-get_colombia_unemployment.R:29:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `result` to be an S3 object.
Actual OO type: none.
── Failure ('test-get_colombia_unemployment.R:32:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `result` to have names `c("indicator", "country", "year", "value")`.
Differences:
`actual` is NULL
`expected` is a character vector ('indicator', 'country', 'year', 'value')
── Failure ('test-get_colombia_unemployment.R:35:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `result$indicator` to have type "character".
Actual type: "NULL"
── Failure ('test-get_colombia_unemployment.R:36:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `result$country` to have type "character".
Actual type: "NULL"
── Failure ('test-get_colombia_unemployment.R:37:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `result$year` to have type "integer".
Actual type: "NULL"
── Failure ('test-get_colombia_unemployment.R:38:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `result$value` to have type "double".
Actual type: "NULL"
── Failure ('test-get_colombia_unemployment.R:50:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_colombia_unemployment.R:53:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Expected `ncol(result)` to equal 4.
Differences:
`actual` is NULL
`expected` is a double vector (4)
── Failure ('test-get_colombia_unemployment.R:61:3'): get_colombia_unemployment() returns data for years 2010 to 2022 ──
Expected `sort(unique(result$year))` to equal `2010:2022`.
Differences:
`actual` is NULL
`expected` is an integer vector (2010, 2011, 2012, 2013, 2014, ...)
── Failure ('test-get_colombia_unemployment.R:92:3'): get_colombia_unemployment() indicator and country are consistent across rows ──
Expected `length(unique(result$indicator))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_colombia_unemployment.R:95:3'): get_colombia_unemployment() indicator and country are consistent across rows ──
Expected `length(unique(result$country))` to equal 1.
Differences:
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_colombia_unemployment.R:102:3'): get_colombia_unemployment() returns exactly 13 rows for the specified period ──
Expected `nrow(result)` to equal 13.
Differences:
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_colombia_unemployment.R:120:3'): get_colombia_unemployment() value column is numeric ──
Expected `is.numeric(result$value)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_colombia_unemployment.R:121:3'): get_colombia_unemployment() value column is numeric ──
Expected `is.double(result$value)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 43 | WARN 0 | SKIP 190 | PASS 572 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 0.3.1
Check: installed package size
Result: NOTE
installed size is 5.7Mb
sub-directories of 1Mb or more:
R 3.7Mb
data 1.6Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, 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: ERROR: 4, OK: 9
Version: 0.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘MedxR_vignette.Rmd’ using rmarkdown
Quitting from MedxR_vignette.Rmd:108-114 [health-canada-din]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `curl::curl_fetch_memory()`:
! SSL peer certificate or SSH remote key was not OK [health-products.canada.ca]:
SSL certificate problem: unable to get local issuer certificate
---
Backtrace:
▆
1. ├─MedxR::get_hc_drug_by_din("00000213")
2. │ ├─MedxR (local) fetch_data(url)
3. │ │ ├─base::withVisible(eval(mc, parent.frame()))
4. │ │ └─base::eval(mc, parent.frame())
5. │ │ └─base::eval(mc, parent.frame())
6. │ └─MedxR (local) `<fn>`(url = url)
7. │ └─httr::GET(url)
8. │ └─httr:::request_perform(req, hu$handle$handle)
9. │ ├─httr:::request_fetch(req$output, req$url, handle)
10. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
11. │ └─curl::curl_fetch_memory(url, handle = handle)
12. └─curl:::raise_libcurl_error(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'MedxR_vignette.Rmd' failed with diagnostics:
SSL peer certificate or SSH remote key was not OK [health-products.canada.ca]:
SSL certificate problem: unable to get local issuer certificate
--- failed re-building ‘MedxR_vignette.Rmd’
SUMMARY: processing the following file failed:
‘MedxR_vignette.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-arm64
Version: 0.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘MedxR_vignette.Rmd’ using rmarkdown
Quitting from MedxR_vignette.Rmd:84-92 [fda-adverse-events]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `curl::curl_fetch_memory()`:
! Timeout was reached [api.fda.gov]:
Resolving timed out after 10000 milliseconds
---
Backtrace:
▆
1. ├─MedxR::get_fda_adverse_events("aspirin")
2. │ ├─MedxR (local) fetch_data(url)
3. │ │ ├─base::withVisible(eval(mc, parent.frame()))
4. │ │ └─base::eval(mc, parent.frame())
5. │ │ └─base::eval(mc, parent.frame())
6. │ └─MedxR (local) `<fn>`(url = url)
7. │ └─httr::GET(url)
8. │ └─httr:::request_perform(req, hu$handle$handle)
9. │ ├─httr:::request_fetch(req$output, req$url, handle)
10. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
11. │ └─curl::curl_fetch_memory(url, handle = handle)
12. └─curl:::raise_libcurl_error(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'MedxR_vignette.Rmd' failed with diagnostics:
Timeout was reached [api.fda.gov]:
Resolving timed out after 10000 milliseconds
--- failed re-building ‘MedxR_vignette.Rmd’
SUMMARY: processing the following file failed:
‘MedxR_vignette.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-oldrel-macos-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: NOTE: 1, OK: 12
Version: 0.1.0
Check: installed package size
Result: NOTE
installed size is 5.6Mb
sub-directories of 1Mb or more:
R 2.6Mb
data 2.6Mb
Flavor: r-oldrel-macos-x86_64