lsave: Read and write lvec object to file

View source: R/load_save.R

lsaveR Documentation

Read and write lvec object to file

Description

Read and write lvec object to file

Usage

lsave(x, filename, overwrite = TRUE, compress = FALSE)

lload(filename)

Arguments

x

lvec object to save

filename

name of the file(s) to save the lvec to. See details.

overwrite

overwrite existing files or abort when files would be overwritten.

compress

a logical specifying if the data should be compressed. (see saveRDS).

Details

The lvec is written in chunks to a number of RDS files using saveRDS. When filename contains the extension 'RDS' (capitalisation may differ), this extension is stripped from the filename. After that the lvec is written in blocks (or chunks) to files having names <filename>.00001.RDS, <filename>.00002.RDS etc. Some additional data (data type, the number of blocks, the size of the lvec, etc) is written to the file <filename>.RDS.

The size of the chunks can be controlled by the option 'chunk_size' (see chunk).

Value

lsave does not return anything. lload returns an lvec.


lvec documentation built on Nov. 10, 2022, 6:18 p.m.

Related to lsave in lvec...