This function loads the myClim .rds data object saved with mc_save.
The mc_save
and mc_load
functions secure that the myClim object is correctly
loaded across myClim versions.
mc_load(file)
path to input .rds file
loaded myClim object
tmp_dir <- tempdir()
tmp_file <- tempfile(tmpdir = tmp_dir)
mc_save(mc_data_example_agg, tmp_file)
data <- mc_load(tmp_file)
file.remove(tmp_file)
#> [1] TRUE