Description Details Super class Methods
HTMLDocument Class
HTMLDocument Class
This is a slightly specialized subclass of HTMLElement
which includes
a $show()
method, and includes the HTML DOCTYPE by default.
only tested in MacOS and Rstudio
minihtml::HTMLElement
-> HTMLDocument
new()
Initialise HTMLDocument
HTMLDocument$new(..., name = "html")
...
Further arguments passed to HTMLElement$new()
name
name of node. default: 'html'
self
save()
Save HTML fragment
HTMLDocument$save(filename, include_declaration = TRUE, ...)
filename
filename
include_declaration
Include DOCTYPE
declaration? default: TRUE
...
Further arguments passed to HTMLElement$save()
self
print()
Print HTMLDocument
HTMLDocument$print(include_declaration = TRUE)
include_declaration
Include DOCTYPE
declaration? default: TRUE
self
as_character()
Convert to character representation
HTMLDocument$as_character(include_declaration = TRUE)
include_declaration
Include DOCTYPE
declaration? default: TRUE
single character string representing the HTML
show()
View HTML in whatever viewer is available
HTMLDocument$show(viewer = getOption("viewer", utils::browseURL))
viewer
viewer to use
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.