Wrapper around base::readRDS() and base::saveRDS().

loadSpataObject(input_path)

saveSpataObject(object, output_path, file_name, overwrite = FALSE)

Arguments

input_path

Character value. The directory leading to the spata-object.

object

A valid spata-object.

output_path

Character vector or NULL. Specifies the folder in which to store the object if the directory is valid.

file_name

Character value. The name-suffix for the file name under which the spata-object is stored. Is prefixed with 'spata-obj-' and suffixed with '.RDS'.

overwrite

Logical. Needs to be set to TRUE if the resulting directory from output_path and file_name already exists.