base64_encode | R Documentation |
The function base64_encode()
encodes a file or a raw vector into the
base64 encoding. The function base64_decode()
decodes data from the
base64 encoding.
base64_encode(x)
base64_decode(x, from = NA)
x |
For |
from |
If provided (and |
base64_encode()
returns a character string.
base64_decode()
returns a raw vector.
xfun::base64_encode(as.raw(1:10))
logo = xfun:::R_logo()
xfun::base64_encode(logo)
xfun::base64_decode("AQIDBAUGBwgJCg==")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.