Description Usage Arguments Note References Examples
This uses the xml-viewer
JavaScript module to provide a simple collapsible
tree viewer for HTML/XML documents, nodes, node sets and plain character
HTML/XML in an htmlwidget
pane.
1 2 3 4 5 |
doc |
|
mode |
viewer mode. |
scroll |
should the |
width |
widget |
height |
widget |
Large HTML or XML content may take some time to render properly. It is suggested that this function be used on as minimal of a subset of HTML/XML as possible or used in a browser context vs an IDE viewer context.
1 2 3 4 5 | if(interactive()) {
txt <- paste0("<note><to>Tove</to><from>Jani</from><heading>Reminder</heading>",
"<body>Don't forget me this weekend!</body></note>")
# xml_tree_view(txt)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.