Skip to main content

pre_eval_save

Function pre_eval_save 

Source
fn pre_eval_save(
    args: &[Arg],
    env: &Environment,
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Save named R objects to a workspace file in GNU R binary format (RDX2).

By default writes gzip-compressed RDX2 binary format, compatible with GNU R’s load(). Pass ascii = TRUE to fall back to the miniRDS text format.

@param … bare names of objects to save @param list character vector of additional object names @param file character scalar: path to write the workspace file @param ascii logical: if TRUE, write miniRDS text format instead of binary (default FALSE) @param compress logical: whether to gzip-compress binary output (default TRUE) @param envir environment to look up objects in (default: calling environment) @return NULL (invisibly)