Description Usage Arguments Details Value
Renders tags (and objects that can be converted into tags using
as.tags) into HTML. (Generally intended to be called from web
framework libraries, not directly by most users–see
print.html(browse=TRUE) for higher level rendering.)
1 2 3 | renderTags(x, singletons = character(0), indent = 0)
doRenderTags(x, indent = 0)
|
x |
Tag object(s) to render |
singletons |
A list of singleton signatures to consider already rendered; any matching singletons will be dropped instead of rendered. (This is useful (only?) for incremental rendering.) |
indent |
Initial indent level, or |
doRenderTags is intended for very low-level use; it ignores
singleton, head, and dependency handling, and simply renders the given tag
objects as HTML.
renderTags returns a list with the following variables:
headAn HTML string that should be included in
<head>.
singletonsCharacter vector of singleton signatures that are known after rendering.
dependenciesA list of resolved
htmlDependency objects.
htmlAn HTML string that represents the main
HTML that was rendered.
doRenderTags returns a simple HTML string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.