The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Type: Package
Title: Wrapper for 'lz-string' 'C++' Library
Version: 0.2.0
Description: Provide access to the 'lz-string' http://pieroxy.net/blog/pages/lz-string/index.html 'C++' library for Lempel-Ziv (LZ) based compression and decompression of strings.
License: MIT + file LICENSE
Encoding: UTF-8
LinkingTo: cpp11
Suggests: testthat (≥ 3.0.0), ggplot2, bench, jsonlite
Config/testthat/edition: 3
RoxygenNote: 7.3.1
URL: https://parmsam.github.io/lzstring-r/, https://github.com/parmsam/lzstring-r
BugReports: https://github.com/parmsam/lzstring-r/issues
NeedsCompilation: yes
Packaged: 2025-05-23 18:41:07 UTC; samparmar
Author: Sam Parmar [aut, cre], Andrey Krasnov [cph] (Author of included lz-string C++ library), Pawel Rucki [ctb]
Maintainer: Sam Parmar <parmartsam@gmail.com>
Repository: CRAN
Date/Publication: 2025-05-23 19:02:03 UTC

Compress a string to Base64

Description

This function takes a string as input and returns a compressed version of the string in Base64 format.

Usage

compressToBase64(string)

Arguments

string

A character string to be compressed.

Value

A character string representing the compressed input string in Base64 format.

Examples

compressToBase64("Hello, world!")

Compress a string to Encoded URI Component

Description

This function takes a string as input and returns a compressed version of the string in Encoded URI Component format.

Usage

compressToEncodedURIComponent(string)

Arguments

string

A character string to be compressed.

Value

A character string representing the compressed input string in Encoded URI Component format.

Examples

compressToEncodedURIComponent("Hello, world!")

Decompress a string from Base64

Description

This function takes a compressed string in Base64 format as input and returns the decompressed version of the string.

Usage

decompressFromBase64(string)

Arguments

string

A character string in Base64 format to be decompressed.

Value

A character string representing the decompressed input string.

Examples

x <- compressToBase64("Hello, world!")
decompressFromBase64(x)

Decompress a string from Encoded URI Component

Description

This function takes a compressed string in Encoded URI Component format as input and returns the decompressed version of the string.

Usage

decompressFromEncodedURIComponent(string)

Arguments

string

A character string in Encoded URI Component format to be decompressed.

Value

A character string representing the decompressed input string.

Examples

x <- compressToEncodedURIComponent("Hello, world!")
decompressFromEncodedURIComponent(x)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.