Skip to contents

Use this function to unzip a zip/gzip file and remove the original archive, if required.

Usage

unzip_and_remove(zip = NULL, dir = tempdir(), remove = TRUE)

Arguments

zip

zip file to unzip

dir

A directory where the extracted files are written to.

remove

if TRUE, removes the zip else keeps it