Simple in-memory base64 encoder and decoder. Used internally for converting raw vectors to text. Interchangable with encoder from base64enc or openssl package.

base64_dec(input)

base64_enc(input)

Arguments

input

string or raw vector to be encoded/decoded

Examples

str <- base64_enc(serialize(iris, NULL)) out <- unserialize(base64_dec(str)) stopifnot(identical(out, iris))