as_frag | R Documentation |
As frag is a helper function to convert a named list to an xml fragment, it
transforms all values to character, and recursively transforms nested lists.
as_frag
can be used for flexible list created xml fragments, names of a
list turn into tags, and values into text nodes.
as_frag(x, ..., .attr = list(...))
x |
named list that will be transformed into a fragment |
... |
optional attributes to be set on the parent of the fragment |
.attr |
a list of attributes to add to the parent of the fragment, overrides the |
xml_fragment()
object as if specified with frag()
.
Other xml_fragment:
add_child_fragment()
,
as.character.xml_fragment()
,
as_xml_nodeset()
,
data_frag()
,
frag()
,
xml_fragment()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.