richfitz / storr

:package: Object cacher for R
http://richfitz.github.io/storr
Other
116 stars 10 forks source link

Support pigz for compressing .rds files #41

Closed krlmlr closed 6 years ago

krlmlr commented 7 years ago

if installed, for parallel compression.

if (Sys.which("pigz") != "") {
  con <- pipe("nice pigz > outfile.rds", mode = "wb")
}

One could argue this should be built into R, but for now...

richfitz commented 6 years ago

once this turns up in R I'll do it, but I don't think that piping out will be good enough