I would like to write the mtcars
data.frame to file using compression (xz
in my case) using the vroom package and pixz
but I can't get it to write a file. It complains that pixz
does not exist even though it is installed locally.
According to the vroom vignette (https://vroom.r-lib.org/articles/vroom.html): To compress using a single thread:
vroom_write(mtcars, "mtcars.tsv.xz")
to compress using a parallel implementation and piping to pixz
vroom_write(mtcars, pipe("pixz > mtcars.tsv.xz"))
sh: pixz: command not found