saveRDSMC: A wrapper around saveRDS to enable multicore compression

Description Usage Arguments Value Examples

View source: R/utilPigz.R

Description

Piping the datastream to be saved through pigz enables the use of multiple cores for compression.

Usage

1
saveRDSMC(object, file, threads = getNumCores())

Arguments

object

An object to be saved

file

The filename of the resulting .rds file

threads

the number of threads to be used for compression (default: all-1)

Value

NULL (invisibly). The object is saved to the filesystem.

Examples

1
2
obj <- list(a=1, b=2)
saveRDSMC(obj, "~/obj.rds")

nbenn/singleCellFeatures documentation built on May 23, 2017, 11:31 a.m.