Skip to contents

All functions

check_dataset_name()
Throws an error if a dataset name is invalid
check_res_id()
Check if a resource ID is valid
dump_download()
Use datastore dump to download whole files
error_check()
Throws errors found in the content of an httr::GET request
get_dataset()
Get Open Data resources from a dataset
get_dataset_additional_info()
get a datasets additional info
get_latest_resource()
Get the latest resource from a data set
get_latest_resource_id()
get_latest_resource_id
get_resource()
Get Open Data resource
get_resource_sql()
Get PHS Open Data using SQL
list_datasets()
Lists all available datasets
list_resources()
Lists all available resources for a dataset
parse_col_select()
Create fields query for GET
parse_error()
Generates error message from an "error" element of an httr::content object
parse_row_filters()
Create JSON 'dict' from named list or vector
phs_GET()
Send a GET request to the PHS CKAN API
request_url()
Produces a URL for a GET request to opendata.nhs.scot
suggest_dataset_name()
Throw an error with suggested dataset name, if possible.
use_dump_check()
Determines if the datastore dump should be used