Skip to contents

unxz() decompresses a xz file into a new file.

Usage

unxz(from, to)

Arguments

from

A path to a xz file.

to

A path to a new file (uncompressed).

Value

This function is ran for its side effect of creating a new file and returns its path, i.e. to.

Examples

newfile <- file.path(tempdir(), "ae.json")
unxz(from = example_path("ae"), to = newfile)
#> $`/home/runner/work/_temp/Library/dataset.json.examples/examples/sdtm/ae.json.xz`
#> [1] "/tmp/Rtmp8F1jPW/ae.json"
#>