rmZipEntries: Remove entries from a Zip archive

View source: R/removeZipEntry.R

rmZipEntriesR Documentation

Remove entries from a Zip archive

Description

This function deletes entries within an existing archive.

Usage

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

 x = I(c(a = "ABC", b = "DEF", c = "GHIJKLML"))
 zip("foo.zip", x, append = FALSE)

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

omegahat/Rcompression documentation built on Nov. 29, 2023, 12:45 a.m.