A Compression Format Optimized for the Web

A lossless compressed data format that uses a combination of the LZ77 algorithm and Huffman coding. Brotli is similar in speed to deflate (gzip) but offers more dense compression.


LZ77 algorithm and Huffman coding. Brotli is similar in speed to deflate (gzip) but offers more dense compression.

About the R package:

Other resources:

# Simple example
myfile <- file.path(R.home(), "COPYING")
x <- readBin(myfile, raw(), file.info(myfile)$size)
y <- brotli_compress(x)
stopifnot(identical(x, brotli_decompress(y)))
 
# Compare to other algorithms
length(x)
length(brotli_compress(x))
length(memCompress(x, "gzip"))
length(memCompress(x, "bzip2"))
length(memCompress(x, "xz"))
 

The libbrotli source code is bundled with the package:

install.package("brotli")

News

0.8

  • Updated libbrotli to 24685f9 (July 28, 2016)
  • Switch bindings to the libbrotli streaming API
  • Build and ship the 'bro' executable with the package
  • Use the new RFC7932 url in package DESCRIPTION

0.6

  • Updated libbrotli to af41b90 (Feb 29, 2016)
  • Restore CXX_STD=CXX11 for Solaris

0.5

  • Updated libbrotli to 82c9e19 (Jan 12, 2016)
  • Changed license to MIT along with upstream libbrotli
  • Brotli no longer requires CXX_STD=CXX11 Makevars

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("brotli")

0.8 by Jeroen Ooms, 7 months ago


https://tools.ietf.org/html/rfc7932 https://github.com/google/brotli#readme


Report a bug at http://github.com/jeroenooms/brotli/issues


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


Authors: Jeroen Ooms [aut, cre], Google, Inc [aut, cph] (Brotli C++ library)


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests knitr, R.rsp, microbenchmark, rmarkdown, ggplot2


See at CRAN