This function was designed for saving the myClim data object to an .rds file, which can be later correctly loaded by any further version of myClim package with mc_load. This is the safest way how to store and share your myClim data.

mc_save(data, file)

Arguments

data

myClim object see myClim-package

file

path to output .rds file

Value

RDS file saved at the output path destination

Examples

tmp_dir <- tempdir()
tmp_file <- tempfile(tmpdir = tmp_dir)
mc_save(mc_data_example_agg, tmp_file)
file.remove(tmp_file)
#> [1] TRUE