diff --git a/DESCRIPTION b/DESCRIPTION index 1573918..e786e6a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: fingertipsR Type: Package -Version: 1.0.5.9000 +Version: 1.0.6 Title: Fingertips Data for Public Health Description: Fingertips () contains data for many indicators of public health in England. The underlying data is now more easily accessible by making use of the API. Maintainer: Sebastian Fox diff --git a/NEWS.md b/NEWS.md index 897dde4..b073766 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,8 @@ -# fingertipsR 1.0.5.9000 +# fingertipsR 1.0.6 (2021-05-17) * fixed warning message for multiple IndicatorIDs passed to indicator_metadata() * fixed bug in indicator_metadata(IndicatorID = "All") - thanks Luke Bradley for pointing it out +* indicator_metadata now includes `Impact of COVID19 field` # fingertipsR 1.0.5 (2020-09-16) diff --git a/R/indicator_metadata.R b/R/indicator_metadata.R index d4dcc4f..23da22a 100644 --- a/R/indicator_metadata.R +++ b/R/indicator_metadata.R @@ -44,7 +44,6 @@ indicator_metadata <- function(IndicatorID = NULL, `Definition` = "c", `Rationale` = "c", `Data source` = "c", - `Indicator production` = "c", `Indicator source` = "c", `Methodology` = "c", `Standard population/values` = "c", @@ -68,7 +67,8 @@ indicator_metadata <- function(IndicatorID = NULL, `Unit` = "c", `Value type` = "c", `Year type` = "c", - `Polarity` = "c") + `Polarity` = "c", + `Impact of COVID-19` = "c") if (missing(path)) path <- fingertips_endpoint() set_config(config(ssl_verifypeer = 0L)) diff --git a/tests/testthat/test-enhancements.R b/tests/testthat/test-enhancements.R index 06d6673..faaf97d 100644 --- a/tests/testthat/test-enhancements.R +++ b/tests/testthat/test-enhancements.R @@ -12,7 +12,7 @@ test_that("fingertips_redred should return an error", { numcols <- 26 test_that(paste("fingertips_redred returns correct column number table for AreaTypeID 202"), { skip_on_cran() - expect_equal(ncol(fingertips_redred(90616, AreaTypeID = 202, Comparator = "England")), numcols) + expect_equal(ncol(fingertips_redred(30309, AreaTypeID = 402, Comparator = "England")), numcols) }) test_that("fingertips_redred returns correct column number table for AreaTypeID 154", { diff --git a/tests/testthat/test-extract.R b/tests/testthat/test-extract.R index 0cae42d..d0f6302 100644 --- a/tests/testthat/test-extract.R +++ b/tests/testthat/test-extract.R @@ -154,7 +154,8 @@ test_that("the correct url produced when AreaTypeID = 'All' and ProfileID provid test_that("the correct url produced when AreaTypeID = 'All' and IndicatorID provided", { skip_on_cran() expect_equal(fingertips_data(IndicatorID = 90362, ProfileID = 156, AreaTypeID = "All", url_only = TRUE), - c("https://fingertips.phe.org.uk/api/all_data/csv/by_indicator_id?indicator_ids=90362&child_area_type_id=302&parent_area_type_id=15&profile_id=156&include_sortable_time_periods=yes", + c("https://fingertips.phe.org.uk/api/all_data/csv/by_indicator_id?indicator_ids=90362&child_area_type_id=402&parent_area_type_id=15&profile_id=156&include_sortable_time_periods=yes", + "https://fingertips.phe.org.uk/api/all_data/csv/by_indicator_id?indicator_ids=90362&child_area_type_id=302&parent_area_type_id=15&profile_id=156&include_sortable_time_periods=yes", "https://fingertips.phe.org.uk/api/all_data/csv/by_indicator_id?indicator_ids=90362&child_area_type_id=202&parent_area_type_id=15&profile_id=156&include_sortable_time_periods=yes", "https://fingertips.phe.org.uk/api/all_data/csv/by_indicator_id?indicator_ids=90362&child_area_type_id=102&parent_area_type_id=15&profile_id=156&include_sortable_time_periods=yes", "https://fingertips.phe.org.uk/api/all_data/csv/by_indicator_id?indicator_ids=90362&child_area_type_id=15&parent_area_type_id=15&profile_id=156&include_sortable_time_periods=yes",