Decompress a folder

decompressFolder(sourceFileName, targetFolder)

Arguments

sourceFileName

Name of the file that must be decompressed.

targetFolder

Name of the folder that will hold the extracted data.

Details

Extracts all compressed files to a folder.

Examples

if (FALSE) {
# Create a folder with some data
dir.create("test")
data <- data.frame(x = runif(1000), y = 1:1000)
saveRDS(data, "test/data1.rds")
saveRDS(data, "test/data2.rds")

compressFolder("test", "data.zip")
decompressFolder("data.zip", "test2")
}