Skip to content

grahamjwhite/zlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published