tic (version 0.2.13.9015)

base64serialize: 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) so that they can be used in Travis builds.

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

Run this code
# NOT RUN {
serial <- base64serialize(1:10)
base64unserialize(serial)
# }

Run the code above in your browser using DataLab