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. If value is vector of files, myClim objects are merged with function mc_prep_merge. If path is directory, then all .rds files are used.
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