HTMLDocument.RdHTMLDocument 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
Inherited methods
new()Initialise HTMLDocument
HTMLDocument$new(..., name = "html")
...Further arguments passed to HTMLElement$new()
namename of node. default: 'html'
self
save()Save HTML fragment
HTMLDocument$save(filename, include_declaration = TRUE, ...)
filenamefilename
include_declarationInclude DOCTYPE declaration? default: TRUE
...Further arguments passed to HTMLElement$save()
self
print()Print HTMLDocument
HTMLDocument$print(include_declaration = TRUE)
include_declarationInclude DOCTYPE declaration? default: TRUE
self
as_character()Convert to character representation
HTMLDocument$as_character(include_declaration = TRUE)
include_declarationInclude 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))viewerviewer to use