About
This package provides simple R bindings to the Zstandard compression library.
Benchmarks
See benchmarks for comparison with other compression algorithms.
Installation
To install from CRAN:
install.packages('zstdr')
To install development version from GitHub:
devtools::install_github("thekvs/zstdr")
Usage
library(zstdr)
data_file <- file.path(R.home(), "COPYING")
data <- readBin(data_file, raw(), file.info(data_file)$size)
compressed <- zstdCompress(data)
stopifnot(identical(data, zstdDecompress(compressed)))