getFileAsBZ2 | R Documentation |
read a file and (re-) compress it into a bzip2-format raw vector
getFileAsBZ2(f, ext = stri_extract_last_regex(f, "\\.[A-Za-z0-9]*$"),
size = file.info(f)$size)
f |
full path to file. This can be an uncompressed file, or one compressed with gzip (extension must be ".gz") or bzip2 (extension must be ".bz2"). |
ext |
[optional] file extension. If not supplied, the
extension is the substring of |
size |
[optional] size of file on disk. If not supplied, it is obtained by a call to file.info |
a raw vector of bzip2-compressed data, with attribute "len"
,
giving the length of the uncompressed data.
If the file f
is empty, this returns a raw vector of length 0.
John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.