knitr_add_tab_item {cola} | R Documentation

## Add one JavaScript tab in the report

### Description

Add one JavaScript tab in the report

### Usage

    knitr_add_tab_item(code, header, prefix, desc = "", opt = NULL,
        message = NULL, hide_and_show = FALSE)

### Arguments

`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.

### Details

Each tab contains the R source code and results generated from it (figure, tables, text, ...).

This function is only for internal use.

### Value

No value is returned.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### See Also

`knitr_insert_tabs` produces a complete HTML fragment.

### Examples

    # There is no example
    NULL

[Package cola version 1.4.1 Index]