| base64_to_image | R Documentation |
Decodes base64-encoded data URIs and writes them to PNG files.
base64_to_image(data_uri, output_files)
data_uri |
Character, a data URI character vector starting with "data:image/png;base64," |
output_files |
Character, paths to the output PNG files |
Character, the paths to the created PNG files
rlogo <- file.path(R.home("doc"), "html", "logo.jpg")
base64_str <- image_to_base64(rlogo)
base64_to_image(
data_uri = base64_str,
output_files = tempfile(fileext = ".jpeg")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.