repr(用于设置选项)和IRdisplay的组合将适用于HTML.其他人可能知道乳胶.
# Cell 1 ------------------------------------------------------------------
library(xtable)
library(IRdisplay)
library(repr)
data(tli)
tli.table
digits(tli.table)
options(repr.vector.quote=FALSE)
display_html(paste(capture.output(print(head(tli.table),type = 'html')),collapse="",sep=""))
# Cell 2 ------------------------------------------------------------------
display_html("hello")
# Cell 3 ------------------------------------------------------------------
display_markdown("[this](http://google.com)")
# Cell 4 ------------------------------------------------------------------
display_png(file="shovel-512.png")
# Cell 5 ------------------------------------------------------------------
display_html("
cell 1 |