Debian Codegraph @

R/as_html.R

raw
1
2
3 # add class html and attr('html') <- TRUE to spoof htmltoolts::HTML(css) output
4 as_html <- function(x, extra_class = NULL) {
5 class(x) <- c(extra_class, "html", "character")
6 attr(x, "html") <- TRUE
7 x
8 }