Utilities for generating output for the html_notebook
format,
through the output_source
function attached to a
output_format
.
html_notebook_output_html(html, meta = NULL)html_notebook_output_img(path = NULL, bytes = NULL,
attributes = NULL, meta = NULL, format = c("png", "jpeg"))
html_notebook_output_png(path = NULL, bytes = NULL,
attributes = NULL, meta = NULL, format = c("png", "jpeg"))
html_notebook_output_code(code, attributes = list(class = "r"),
meta = NULL)
Arbitrary HTML content to insert.
An R list of arbitrary meta-data. The data will be converted to JSON, base64-encoded, and injected into the header comment.
A path to a file. For functions accepting both path
and bytes
, if bytes
is NULL
, the bytewise contents
will be obtained by reading the file.
The bytewise representation of content.
A named R list of HTML attributes. These will be escaped and inserted into the generated HTML as appropriate.
The image format; one of "png"
or "jpeg"
.
Source code.
See the online
documentation for additional details on using the html_notebook
format.