Learn R Programming

Snappier

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"

Copy Link

Version

Install

install.packages('snappier')

Monthly Downloads

16

Version

0.2.0

License

BSD_3_clause + file LICENSE

Maintainer

Huw Campbell

Last Published

September 19th, 2022

Functions in snappier (0.2.0)

snappier

Snappy compression and decompression