From 7376d2bf997273127e89240d9f48b37d981f2b4d Mon Sep 17 00:00:00 2001 From: csills01 Date: Thu, 21 Nov 2024 10:08:12 +0000 Subject: [PATCH 1/4] increment package version and update news --- DESCRIPTION | 2 +- NEWS.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index f512ef0..d4c891d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: phsopendata Title: Extract Open Data from opendata.nhs.scot -Version: 0.2.0 +Version: 0.3.0 Authors@R: c( person("Csilla", "Scharle", , "csilla.scharle2@phs.scot", role = c("aut", "cre")), person("James", "McMahon", , "james.mcmahon@phs.scot", role = "aut"), diff --git a/NEWS.md b/NEWS.md index 1bb693b..cc85a56 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,9 @@ +# phsopendata 0.3.0 (2024-11-21) + +- `get_dataset()` now takes the `col_select` and `row_filter` arguments allowing filtering of data. +- Failed calls will be retried up to 3 times using httr::RETRY. +- Improvements to `get_resource_sql` error checks and messages and better handling of spaces and new lines. + # phsopendata 0.2.0 (2024-09-18) - `get_dataset()` and `get_resource()` gain a new parameter `include_context` From 60541f6f1d1cc797bdec91d8b84ea92daff14111 Mon Sep 17 00:00:00 2001 From: James McMahon Date: Thu, 21 Nov 2024 10:55:51 +0000 Subject: [PATCH 2/4] Add PHS as the copyright holder We've done this in other packages, I just noticed it was missing here. --- DESCRIPTION | 1 + 1 file changed, 1 insertion(+) diff --git a/DESCRIPTION b/DESCRIPTION index d4c891d..db62214 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,6 +2,7 @@ Package: phsopendata Title: Extract Open Data from opendata.nhs.scot Version: 0.3.0 Authors@R: c( + person("Public Health Scotland", , , "phs.datascience@phs.scot", role = "cph"), person("Csilla", "Scharle", , "csilla.scharle2@phs.scot", role = c("aut", "cre")), person("James", "McMahon", , "james.mcmahon@phs.scot", role = "aut"), person("David", "Aikman", , "david.aikman@phs.scot", role = "aut"), From 02b79b994e584a766c02e0380ea41d6040958628 Mon Sep 17 00:00:00 2001 From: James McMahon Date: Thu, 21 Nov 2024 11:02:06 +0000 Subject: [PATCH 3/4] Add links to NEWS.md --- NEWS.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NEWS.md b/NEWS.md index cc85a56..d701f48 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,23 +1,23 @@ # phsopendata 0.3.0 (2024-11-21) -- `get_dataset()` now takes the `col_select` and `row_filter` arguments allowing filtering of data. -- Failed calls will be retried up to 3 times using httr::RETRY. -- Improvements to `get_resource_sql` error checks and messages and better handling of spaces and new lines. +- [`get_dataset()`](https://public-health-scotland.github.io/phsopendata/reference/get_dataset.html) now takes the `col_select` and `row_filter` arguments allowing filtering of data. +- Failed calls will be retried up to 3 times using [`httr::RETRY()`](https://httr.r-lib.org/reference/RETRY.html). +- Improvements to [`get_resource_sql()`](https://public-health-scotland.github.io/phsopendata/reference/get_resource_sql.html) error checks and messages and better handling of spaces and new lines. # phsopendata 0.2.0 (2024-09-18) -- `get_dataset()` and `get_resource()` gain a new parameter `include_context` +- [`get_dataset()`](https://public-health-scotland.github.io/phsopendata/reference/get_dataset.html) and [`get_resource()`](https://public-health-scotland.github.io/phsopendata/reference/get_resource.html) gain a new parameter `include_context` which allows adding context such as the resource ID and modified / created dates to returned data (#24). - The magrittr pipe (`%>%`) is now exported (#29). -- `get_dataset()` will now suggest multiple dataset names, when the dataset +- [`get_dataset()`](https://public-health-scotland.github.io/phsopendata/reference/get_dataset.html) will now suggest multiple dataset names, when the dataset you've asked for doesn't exist (i.e. there's a typo) and there are multiple likely candidates (#28). -- Two new functions `list_datasets()` and `list_resources()` allow browsing +- Two new functions [`list_datasets()`](https://public-health-scotland.github.io/phsopendata/reference/list_datasets.html) and [`list_resources()`](https://public-health-scotland.github.io/phsopendata/reference/list_resources.html) allow browsing available datasets and resources (#10). -- The new function `get_latest_resource()` retrieves the most recent resource from a dataset with additional context such as the resource ID and modified / created dates (#36). +- The new function [`get_latest_resource()`](https://public-health-scotland.github.io/phsopendata/reference/get_latest_resource.html) retrieves the most recent resource from a dataset with additional context such as the resource ID and modified / created dates (#36). # phsopendata 0.1.0 (2021-07-22) - Initial package release. -- `get_dataset()`, `get_resource()` and `get_resource_sql()` functions added. +- [`get_dataset()`](https://public-health-scotland.github.io/phsopendata/reference/get_dataset.html), [`get_resource()`](https://public-health-scotland.github.io/phsopendata/reference/get_resource.html) and [`get_resource_sql()`](https://public-health-scotland.github.io/phsopendata/reference/get_resource_sql.html) functions added. From 524f0d873bb25aba0b7e4c7a89aaaa416262b2fb Mon Sep 17 00:00:00 2001 From: James McMahon Date: Thu, 21 Nov 2024 11:03:12 +0000 Subject: [PATCH 4/4] Add GitHub PR links to NEWS.md For the nerds --- NEWS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index d701f48..df800a5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,8 +1,8 @@ # phsopendata 0.3.0 (2024-11-21) -- [`get_dataset()`](https://public-health-scotland.github.io/phsopendata/reference/get_dataset.html) now takes the `col_select` and `row_filter` arguments allowing filtering of data. -- Failed calls will be retried up to 3 times using [`httr::RETRY()`](https://httr.r-lib.org/reference/RETRY.html). -- Improvements to [`get_resource_sql()`](https://public-health-scotland.github.io/phsopendata/reference/get_resource_sql.html) error checks and messages and better handling of spaces and new lines. +- [`get_dataset()`](https://public-health-scotland.github.io/phsopendata/reference/get_dataset.html) now takes the `col_select` and `row_filter` arguments allowing filtering of data. (#46) +- Failed calls will be retried up to 3 times using [`httr::RETRY()`](https://httr.r-lib.org/reference/RETRY.html). (#45 and #47) +- Improvements to [`get_resource_sql()`](https://public-health-scotland.github.io/phsopendata/reference/get_resource_sql.html) error checks and messages and better handling of spaces and new lines. (#41) # phsopendata 0.2.0 (2024-09-18)