loadZip | R Documentation |
We use this function to read the contents of a zip file
into memory. This is a general function and can be used
to read arbitrary files, including any binary file.
It determines the length of the file and reads that many bytes
and so removes the need for the caller of
readBin
to know how many bytes are in
the file.
readBinaryFile(filename)
loadZip(filename)
filename |
the full path identifying the file |
A raw vector with length corresponding to the number of bytes in the file.
Duncan Temple Lang
readBin
data = loadZip(system.file("sampleData", "Empty.docx", package = "Rcompression"))
ar = zipArchive(data)
names(ar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.