rmZipEntries: Remove entries from a Zip archive

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/removeZipEntry.R

Description

This function deletes entries within an existing archive.

Usage

1
rmZipEntries(archive, entries)

Arguments

archive

the name of the archive or the ZipArchive object

entries

the names or indices of the entries to delete

Value

An updated version of the archive object with the names of the elements updated.

Note

This currently is not implemented for in-memory archives. We also need to implement a version for RdzArchive objects that updates the .toc entry.

Author(s)

Duncan Temple Lang

See Also

zipArchive

Examples

1
2
3
4
5
 x = I(c(a = "ABC", b = "DEF", c = "GHIJKLML"))
 zip("foo.zip", x, append = FALSE)

 z = zipArchive("foo.zip")
 new.z = rmZipEntries(z, "b")

statwonk/Rcompression documentation built on May 30, 2019, 10:43 a.m.