| unzip_process {zip} | R Documentation |
unzip_process() returns an R6 class that represents an unzip process.
It is implemented as a subclass of processx::process.
unzip_process()
An unzip_process R6 class object, a subclass of
processx::process.
unzip_process classup <- unzip_process()$new(zipfile, exdir = ".")
See processx::process for the class methods.
Arguments:
zipfile: Path to the zip file to uncompress.
exdir: Directory to uncompress the archive to. If it does not
exist, it will be created.
ex <- system.file("example.zip", package = "zip")
tmp <- tempfile()
up <- unzip_process()$new(ex, exdir = tmp)
up$wait()
up$get_exit_status()
dir(tmp)