grahamjwhite / zlib

zlib in R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zlib

zlib provides access to the functions in the zlib C library, using Rcpp.

Example

This is a basic example which shows you how to solve a common problem:

library(zlib)

input_text <- "Some text to compress"

compressed_text <- zlib::compress(charToRaw(input_text))

decompressed_text <- rawToChar(zlib::decompress(compressed_text))

identical(input_text, decompressed_text)
#> [1] TRUE

About

zlib in R


Languages

Language:C 92.2%Language:DIGITAL Command Language 2.9%Language:Makefile 1.8%Language:C++ 1.5%Language:Roff 1.0%Language:R 0.6%