base64serialize: Helpers for converting R objects to strings and back

View source: R/base64.R

base64serializeR Documentation

Helpers for converting R objects to strings and back

Description

base64serialize() converts an R object into a string suitable for storing in an environment variable. Use this function for encoding entire R objects (such as OAuth tokens).

base64unserialize() is the inverse operation to base64serialize(). Use this function in your tic.R to access the R object previously encoded by base64serialize().

Usage

base64serialize(x, compression = "gzip")

base64unserialize(x, compression = "gzip")

Arguments

x

Object to serialize or deserialize

compression

Passed on as type argument to memCompress() or memDecompress().

Examples

serial <- base64serialize(1:10)
base64unserialize(serial)

ropenscilabs/tic documentation built on Feb. 5, 2024, 5:06 p.m.