Given a vector of compressed file names or the name of a folder containing compressed files, unzip the files to the given output folder. If no output folder is indicated, it is considered the same folder where the input files are.
Details
We can indicate whether to include the file name (without the extension) as a folder in the output folder.
Examples
f <- system.file("extdata", package = "satres")
r <- sat_untarzip(f, only_show_files = TRUE)
f1 <- system.file("extdata", "satres.zip", package = "satres")
f2 <- system.file("extdata", "satres.tar", package = "satres")
r <- sat_untarzip(c(f1, f2), only_show_files = TRUE)