All functions

generate_download_filename()

generate a filename for a download

monstr_clean()

Clean the data according to MONSTR rules.

monstr_data()

Get the Data

monstr_pipeline_defaults()

Create the MONSTR defaults

monstr_read_file()

Read the file described by the metadata

monstr_write_clean()

Writes the data to the 'clean' area

ons_api_call()

Call the ONS API

ons_available_datasets()

Available Datasets

ons_available_editions()

Available Editions

ons_available_versions()

Available Versions

ons_dataset_by_id()

Dataset By Id

ons_datasets_setup()

Datasets Setup

ons_download()

Download

safe_download()

Safe Download Downloads a file and tries hard to tidy up in the event of errors. Since these files are typically large we don't want to leave them in temp directories. The destfile should only appear if the download was successful.

write_csv()

write the data as a csv.

write_metadata()

Write Metadata (write_metadata) writes some metadata about where the file came from. TODO - could do this with fs xattr, but maybe that's not well known by users?

write_rds()

write the data as a RDS.

write_xlsx()

write the data as a xlsx.