base64dec | R Documentation |
Decodes a character string, raw vector or other object from base64 encoding.
base64dec(x, convert = TRUE)
x |
an object. |
convert |
[default TRUE] logical TRUE to convert back to a character string, FALSE to convert back to a raw vector or NA to decode and then unserialize back to the original object. |
The value of ‘convert’ should be set to TRUE, FALSE or NA to be the reverse of the 3 encoding operations (for strings, raw vectors and arbitrary objects), in order to return the original object.
A character string, raw vector, or other object depending on the value of ‘convert’. If conversion to a character string fails, a raw vector will be returned instead (accompanied by a warning).
This implementation is based that by 'The Mbed TLS Contributors' under the 'Mbed TLS' Trusted Firmware Project at https://www.trustedfirmware.org/projects/mbed-tls.
base64enc
base64dec(base64enc("secret base"))
base64dec(base64enc(as.raw(c(1L, 2L, 4L))), convert = FALSE)
base64dec(base64enc(data.frame()), convert = NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.