Skip to contents

Generate a function for saving raw output objects for a location/forecast date/scenario trio.

Usage

get_object_saver(location, forecast_date, scenario, raw_output_dir)

Arguments

location

Name of the location, as a string.

forecast_date

The forecast date, as a date or in a format coercible by as.Date().

scenario

Name of the scenario, as a string.

raw_output_dir

Directory in which to save the .rds file.

Value

A function for saving objects as .rds files, as the output of calling purrr::partial() on save_rds_with_suffix().