Skip to contents

CDS objects can be large and because they are normally stored in memory this can lead to prolonged loading time and possibly system crashes. Use this function to save a monocle cds object to disk. The expected usage is to provide the function a cds object to save, and two directories. These directories should be within a datapackage project, but this is not strictly required. The extdata directory is where the cds data will be saved. This must be within inst (so, inst/extdata) for it to be installed and loaded with the data package using project_data. The data directory is where normal .rda files are saved for typical R objects. This will be a placeholder object with the same name. The purpose is to permit documentation of the cds object and to mitigate namespace conflicts. When the real object is loaded, the placeholder is overwritten.

Usage

save_monocle_disk(cds_disk, data_directory, extdata_directory, alt_name = NULL)

Arguments

cds_disk

The cds object to save to disk.

data_directory

The package data directory to save to.

extdata_directory

The package extdata directory to save to.

alt_name

An alternative name to save the cds under. Useful if the function is used programmatically.

Value

nothing