Generate a function for loading raw output objects for a location/forecast date/scenario trio.
Source:R/utils.R
get_object_loader.Rd
Generate a function for loading 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 look for the
.rds
file.
Value
A function for loading objects from .rds
files,
as the output of calling purrr::partial()
on
read_rds_with_suffix()
.