This function is the same as
xfun::base64_uri() (only with a
different function name). It can encode an image file as a base64 string,
which can be used in the
img tag in HTML.
Path to the image file.
The data URI as a character string.
Wush Wu and Yihui Xie
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.