View source: R/func_nest_tabset.R
nest_tabset | R Documentation |
Create nested tabsets in RMarkdown. Supply a nested list of objects,
unique ids for these and a function to display them. Returns the html to
be contained in a r chunk with results = "asis"
nest_tabset(
listTree,
idTree,
depth,
parse_function,
tabset_type = "tabset tabset-pills"
)
listTree |
A list or list of lists which defines the structure of the tabset. |
idTree |
A list or list of list, of character strings. Used for div ids. Must be unique throught the whole markdown document. |
depth |
What depth should the tabset start at. I.e how many "#" would the top level begin with |
parse_function |
A function to handle whatever lies at the end of the lists. e.g. use print for ggplots. |
tabset_type |
either "tabset" or "tabset tabset-pills" Note the lack of curly braces and full stops. |
W. S. Drysdale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.