Compress and Decompress 'Snappy' Encoded Data

Provides compression and decompression of 'Snappy' encoded data. Includes and provides bindings to the 'Snappy' compression library, with a safe R interface.


Snappier

Build Status CRAN_Status_Badge

R package bindings for the Snappy library.

This library provides compressions and decompression of Snappy bytestrings in R.

Benefits

  • Snappy C/C++ code is embedded in the library, so external dependencies are not required.
  • Use or RAWSXP underneath prevents runtime errors
  • Direct access to R's internal data structures is given to the Snappy library, so it's about as efficient as it can be.
  • Round trip tests with hedgehog provide good assurances for correctness.

Basic Usage

# Compress a character vector
comp <- compress("this text will be compressed")
decompress(comp)
## [1] "this text will be compressed"

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("snappier")

0.2.0 by Huw Campbell, 4 years ago


Browse source code at https://github.com/cran/snappier


Authors: Huw Campbell [aut, cre] , Jeff Dean [ctb] , Sanjay Ghemawat [ctb] , Steinar Gunderson [ctb] , Martin Gieseking [ctb] , Google Inc. [cph]


Documentation:   PDF Manual  


BSD_3_clause + file LICENSE license


Suggests testthat, hedgehog


See at CRAN