☰
Debian Codegraph
@
0.4.10+dfsg-3
/
/
R
/
as_html.R
☽
☼
R/as_html.R
code
plain
raw
MIT
2018-2021 Joe Cheng,; Timothy Mastny,; Richard Iannone,; Barret Schloerke,; Carson Sievert,; RStudio,; Sass Open Source Foundation (LibSass library),; Greter Marcel (LibSass library),; Mifsud Michael (LibSass library),; Hampton Catlin (LibSass library),; Natalie Weizenbaum (LibSass library),; Chris Eppstein (LibSass library),; Adams Joseph (json.cpp),; Trifunovic Nemanja (utf8.h)
debian/copyright
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
}