mc_save: Save myClim object

View source: R/serialize.R

mc_saveR Documentation

Save myClim object

Description

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.

Usage

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)

myClim documentation built on Oct. 21, 2024, 5:07 p.m.