knitr_add_tab_item {cola} | R Documentation |
Add one JavaScript tab in the report
knitr_add_tab_item(code, header, prefix, desc = "", opt = NULL, message = NULL, hide_and_show = FALSE)
code |
R code to execute. |
header |
header or the title for the tab. |
prefix |
prefix of chunk label. |
desc |
decription in the tab. |
opt |
options for the knitr chunk. |
message |
message to print. |
hide_and_show |
whether hide the code output. |
Each tab contains the R source code and results generated from it (figure, tables, text, ...).
This function in only for internal use.
No value is returned.
Zuguang Gu <z.gu@dkfz.de>
knitr_insert_tabs
produces a complete HTML fragment.
# There is no example NULL