Generate a function for saving raw output objects for a location/forecast date/scenario trio.
Source:R/utils.R
get_object_saver.RdGenerate a function for saving raw output objects for a location/forecast date/scenario trio.
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
.rdsfile.
Value
A function for saving objects as .rds files,
as the output of calling purrr::partial() on
save_rds_with_suffix().