Last updated on 2025-10-21 00:50:32 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
AlgeriAPIs | 13 | ||
ArgentinAPI | 13 | ||
BrazilDataAPI | 13 | ||
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 | 7 | |
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: 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.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [24s/383s]
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
Error: status 502
Error: status 502
Datasets available in the 'ChinAPIs' package:
Datasets available in the 'ChinAPIs' package:
[ FAIL 31 | WARN 1 | SKIP 18 | PASS 4021 ]
══ 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_literacy_rate.R:15:3'): get_china_literacy_rate() returns valid structure and types ──
`result` is not an S3 object
── Failure ('test-get_china_literacy_rate.R:18:3'): get_china_literacy_rate() returns valid structure and types ──
Names of `result` ('') don't match 'indicator', 'country', 'year', 'value'
── Failure ('test-get_china_literacy_rate.R:21:3'): get_china_literacy_rate() returns valid structure and types ──
result$indicator has type 'NULL', not 'character'.
── Failure ('test-get_china_literacy_rate.R:22:3'): get_china_literacy_rate() returns valid structure and types ──
result$country has type 'NULL', not 'character'.
── Failure ('test-get_china_literacy_rate.R:23:3'): get_china_literacy_rate() returns valid structure and types ──
result$year has type 'NULL', not 'integer'.
── Failure ('test-get_china_literacy_rate.R:24:3'): get_china_literacy_rate() returns valid structure and types ──
is.numeric(result$value) || is.integer(result$value) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_china_literacy_rate.R:36:3'): get_china_literacy_rate() returns valid structure and types ──
nrow(result) (`actual`) not equal to 13 (`expected`).
`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 ──
any(is.na(result$value)) || any(!is.na(result$value)) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_china_population.R:15:3'): get_china_population() returns correct structure and types ──
is.null(result) is not FALSE
`actual`: TRUE
`expected`: FALSE
── Failure ('test-get_china_population.R:18:3'): get_china_population() returns correct structure and types ──
`result` is not an S3 object
── Failure ('test-get_china_population.R:22:3'): get_china_population() returns correct structure and types ──
Names of `result` ('') don't match 'indicator', 'country', 'year', 'value', 'value_label'
── Failure ('test-get_china_population.R:25:3'): get_china_population() returns correct structure and types ──
result$indicator has type 'NULL', not 'character'.
── Failure ('test-get_china_population.R:26:3'): get_china_population() returns correct structure and types ──
result$country has type 'NULL', not 'character'.
── Failure ('test-get_china_population.R:27:3'): get_china_population() returns correct structure and types ──
result$year has type 'NULL', not 'integer'.
── Failure ('test-get_china_population.R:28:3'): get_china_population() returns correct structure and types ──
is.numeric(result$value) || is.integer(result$value) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_china_population.R:29:3'): get_china_population() returns correct structure and types ──
result$value_label has type 'NULL', not 'character'.
── Failure ('test-get_china_population.R:41:3'): get_china_population() returns correct structure and types ──
nrow(result) (`actual`) not equal to 13 (`expected`).
`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 ──
`china_unemployment_data` is not an S3 object
── Failure ('test-get_china_unemployment.R:17:3'): get_china_unemployment returns a tibble/data frame ──
`china_unemployment_data` is not an S3 object
── Failure ('test-get_china_unemployment.R:22:3'): get_china_unemployment returns data with exactly 4 columns ──
ncol(china_unemployment_data) (`actual`) not equal to 4 (`expected`).
`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 ──
nrow(china_unemployment_data) (`actual`) not equal to 13 (`expected`).
`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 ──
names(china_unemployment_data) (`actual`) not equal to c("indicator", "country", "year", "value") (`expected`).
`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 ──
china_unemployment_data$indicator has type 'NULL', not 'character'.
── Failure ('test-get_china_unemployment.R:41:3'): get_china_unemployment returns data with correct column types ──
china_unemployment_data$country has type 'NULL', not 'character'.
── Failure ('test-get_china_unemployment.R:42:3'): get_china_unemployment returns data with correct column types ──
china_unemployment_data$year has type 'NULL', not 'integer'.
── Failure ('test-get_china_unemployment.R:43:3'): get_china_unemployment returns data with correct column types ──
china_unemployment_data$value has type 'NULL', not 'double'.
── Failure ('test-get_china_unemployment.R:60:3'): get_china_unemployment year column covers 2010-2022 completely ──
`actual_years` (`actual`) not equal to `expected_years` (`expected`).
`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 ──
length(unique(china_unemployment_data$year)) (`actual`) not equal to 13 (`expected`).
`actual`: 0.0
`expected`: 13.0
── Failure ('test-get_china_unemployment.R:94:3'): get_china_unemployment shows expected COVID-19 impact in 2020 ──
`year_of_max` (`actual`) not equal to 2020 (`expected`).
`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 ──
`max_unemployment` (`actual`) not equal to 5 (`expected`).
`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 31 | WARN 1 | SKIP 18 | PASS 4021 ]
Error: Test failures
Execution halted
Flavor: r-release-linux-x86_64
Current CRAN status: ERROR: 1, NOTE: 3, OK: 9
Version: 0.3.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [19s/39s]
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
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
Error: status 502
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 ──
is.null(result) is not FALSE
`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 ──
`result` is not an S3 object
── Failure ('test-get_colombia_hospital_beds.R:32:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
Names of `result` ('') don't match '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 ──
result$indicator has type 'NULL', not 'character'.
── Failure ('test-get_colombia_hospital_beds.R:36:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
result$country has type 'NULL', not 'character'.
── Failure ('test-get_colombia_hospital_beds.R:37:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
result$year has type 'NULL', not 'integer'.
── Failure ('test-get_colombia_hospital_beds.R:38:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
result$value has type 'NULL', not 'double'.
── Failure ('test-get_colombia_hospital_beds.R:50:3'): get_colombia_hospital_beds() returns a tibble with the correct structure and content ──
nrow(result) (`actual`) not equal to 13 (`expected`).
`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 ──
ncol(result) (`actual`) not equal to 4 (`expected`).
`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 ──
sort(unique(result$year)) (`actual`) not equal to 2010:2022 (`expected`).
`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 ──
length(unique(result$indicator)) (`actual`) not equal to 1 (`expected`).
`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 ──
length(unique(result$country)) (`actual`) not equal to 1 (`expected`).
`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 ──
nrow(result) (`actual`) not equal to 13 (`expected`).
`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 ──
is.null(result) is not FALSE
`actual`: TRUE
`expected`: FALSE
── Failure ('test-get_colombia_population.R:29:3'): get_colombia_population() returns a tibble with the correct structure and content ──
`result` is not an S3 object
── Failure ('test-get_colombia_population.R:32:3'): get_colombia_population() returns a tibble with the correct structure and content ──
Names of `result` ('') don't match '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 ──
result$indicator has type 'NULL', not 'character'.
── Failure ('test-get_colombia_population.R:36:3'): get_colombia_population() returns a tibble with the correct structure and content ──
result$country has type 'NULL', not 'character'.
── Failure ('test-get_colombia_population.R:37:3'): get_colombia_population() returns a tibble with the correct structure and content ──
result$year has type 'NULL', not 'integer'.
── Failure ('test-get_colombia_population.R:38:3'): get_colombia_population() returns a tibble with the correct structure and content ──
result$value has type 'NULL', not 'integer'.
── Failure ('test-get_colombia_population.R:39:3'): get_colombia_population() returns a tibble with the correct structure and content ──
result$value_label has type 'NULL', not 'character'.
── Failure ('test-get_colombia_population.R:51:3'): get_colombia_population() returns a tibble with the correct structure and content ──
nrow(result) (`actual`) not equal to 13 (`expected`).
`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 ──
ncol(result) (`actual`) not equal to 5 (`expected`).
`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 ──
sort(unique(result$year)) (`actual`) not equal to 2010:2022 (`expected`).
`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 ──
length(unique(result$indicator)) (`actual`) not equal to 1 (`expected`).
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_colombia_population.R:96:3'): get_colombia_population() indicator and country are consistent across rows ──
length(unique(result$country)) (`actual`) not equal to 1 (`expected`).
`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 ──
nrow(result) (`actual`) not equal to 13 (`expected`).
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_colombia_population.R:145:3'): get_colombia_population() value column is integer ──
is.integer(result$value) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_colombia_unemployment.R:26:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
is.null(result) is not FALSE
`actual`: TRUE
`expected`: FALSE
── Failure ('test-get_colombia_unemployment.R:29:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
`result` is not an S3 object
── Failure ('test-get_colombia_unemployment.R:32:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
Names of `result` ('') don't match 'indicator', 'country', 'year', 'value'
── Failure ('test-get_colombia_unemployment.R:35:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
result$indicator has type 'NULL', not 'character'.
── Failure ('test-get_colombia_unemployment.R:36:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
result$country has type 'NULL', not 'character'.
── Failure ('test-get_colombia_unemployment.R:37:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
result$year has type 'NULL', not 'integer'.
── Failure ('test-get_colombia_unemployment.R:38:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
result$value has type 'NULL', not 'double'.
── Failure ('test-get_colombia_unemployment.R:50:3'): get_colombia_unemployment() returns a tibble with the correct structure and content ──
nrow(result) (`actual`) not equal to 13 (`expected`).
`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 ──
ncol(result) (`actual`) not equal to 4 (`expected`).
`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 ──
sort(unique(result$year)) (`actual`) not equal to 2010:2022 (`expected`).
`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 ──
length(unique(result$indicator)) (`actual`) not equal to 1 (`expected`).
`actual`: 0.0
`expected`: 1.0
── Failure ('test-get_colombia_unemployment.R:95:3'): get_colombia_unemployment() indicator and country are consistent across rows ──
length(unique(result$country)) (`actual`) not equal to 1 (`expected`).
`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 ──
nrow(result) (`actual`) not equal to 13 (`expected`).
`actual` is NULL
`expected` is a double vector (13)
── Failure ('test-get_colombia_unemployment.R:120:3'): get_colombia_unemployment() value column is numeric ──
is.numeric(result$value) is not TRUE
`actual`: FALSE
`expected`: TRUE
── Failure ('test-get_colombia_unemployment.R:121:3'): get_colombia_unemployment() value column is numeric ──
is.double(result$value) is not TRUE
`actual`: FALSE
`expected`: TRUE
[ FAIL 43 | WARN 0 | SKIP 190 | PASS 572 ]
Error: Test failures
Execution halted
Flavor: r-release-linux-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: 7
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, 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