Skip to content

Commit

Permalink
Merge branch 'update_readme' of github.com:Public-Health-Scotland/phs…
Browse files Browse the repository at this point in the history
…opendata into update_readme
  • Loading branch information
csillasch committed Sep 18, 2024
2 parents 7a84434 + f4af8ab commit 15c081c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ platform](https://www.opendata.nhs.scot/) via the CKAN API.
resource id
- `get_dataset()` extracts multiple resources from an open dataset by
dataset name
- `list_datasets()` returns the names of all available datasets
- `list_resources()` returns information on all resources within an
open dataset by dataset name

For extracting metadata and search functionality, we recommend using the
[ckanr package](https://docs.ropensci.org/ckanr/).

`phsopendata` can be used on both the
[server](https://rstudio.nhsnss.scot.nhs.uk/) and desktop versions of
RStudio. However, depending on firewall settings, proxy use may need to
be configured with `use_proxy()`.
`phsopendata` can be used on both Posit Workbench and desktop versions
of RStudio. However, depending on firewall settings, proxy use may need
to be configured with `use_proxy()`.

## Installation

Expand All @@ -46,7 +48,7 @@ Using `remotes` you run this to install the package:
To extract a specific resource, you will need it’s unique identifier -
resource id. This can be found in the dataset metadata, the URL of a
resource’s page on <https://www.opendata.nhs.scot/>, or extracted using
`ckanr::package_show`.
`list_resources()`.

library(phsopendata)

Expand Down Expand Up @@ -84,8 +86,8 @@ You can use `col_select` and `row_filters` to query the data server-side

To extract all resources from a dataset, you will need to use the
*dataset name*. Note that this will differ from the *dataset title* that
displays on the website. This can be found in the dataset metadata
extracted using `ckanr::package_show`, or taken from the dataset URL.
displays on the website. This can be found using `list_datasets()`, or
taken from the dataset URL.

In this example, we are downloading GP Practice Population Demographics
from:
Expand Down

0 comments on commit 15c081c

Please sign in to comment.