is_compressed | R Documentation |
Helper function for is_rdata, checks if the file is a compressed (gzip) file. Does not (yet) check for bzip2 or xz compression.
is_compressed(filename, magic.number = as.raw(c("0x1f", "0x8b")))
filename |
The filename of the file to test for magic compression codes |
magic.number |
The magic numbers in as a vector of strings with the hexadecimal numbers (e.g. "0x1f") |
boolean, TRUE if the file is compressed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.