Description Usage Arguments Value Examples
Compress a raw vector
1 | mem_compress(r_content, format)
|
r_content |
Raw vector of data to compress. |
format |
A character scalar indicating the type of compression to apply. This must be one of "gzip", "zlib" or "raw". |
Raw vector of compressed data.
1 2 3 | raw <- charToRaw("The quick brown fox jumps over the lazy dog.")
compressed <- mem_compress(raw, format = "gzip")
decompressed <- mem_inflate(compressed, format = "gzip", 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.