knitr_add_tab_item | R Documentation |
Add 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 the chunk label. |
desc |
Decription in the tab. |
opt |
Options for the knitr chunk. |
message |
Message to print. |
hide_and_show |
Whether to hide the code output. |
Each tab contains the R source code and results generated from it (figure, tables, text, ...).
This function is 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.