content = I(c(myFile = "This is raw text", otherFile = paste(letters, collapse = "\n"), x = "a", x = "b", x = "c")) zip("asis.zip", content, append = FALSE) z = zipArchive("asis.zip")
library(Rcompression) x = I(c(a = "ABC", b = "DEF", c = "GHIJKLML")) zip("foo.zip", x, append = FALSE) zip("foo.zip", x) z = zipArchive("foo.zip") getZipInfo(z)
gunzip(gzip("This is a string"))No bzip2 facilities.
content = list( "A/myFile" = I("This is raw text"), "B/otherFile" = I(paste(letters, collapse = "\n")), top = I("A string")) zip("/tmp/dir.zip", content)Then unzip externally to see if the zip facilities do the right thing.