HtmlAttrStr | R Documentation |
HtmlAttrStr Convert the arguments into strings to be used as attributes in HTML.
HtmlAttrStr(...)
... |
Named or unnamed arguments. |
See examples (should be self-explanatory)
A vector of strings.
Named arguments are converted in the form of attribute="Value"
.
Unnamed arguments are converted as Boolean HTML attributes
(like disabled
or required
).
The characters ".#:" and spaces
https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
## Not run: cat( HtmlAttrStr(id="my id", A="A", "B", C=NULL, D=NA, E=Inf, F=NaN, NA, H=x, Y="Fa\"il", `Zor>ro`="Z") ) #> id="my id" A="A" B D="NA" NA H="2" Y="Fa_il" Zor_ro="Z" ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.