Compresses to a raw vector using the lz4 algorithm. Exports the main lz4 compression function.
The object to serialize.
The compression level used. A number > 1 (higher is less compressed).
The compressed data as a raw vector.
x <- 1:1e6 xserialized <- serialize(x, connection=NULL) xcompressed <- lz4_compress_raw(xserialized, compress_level = 1) xrecovered <- unserialize(lz4_decompress_raw(xcompressed))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.