new_tab: Creates a new Rmarkdown html tab.

View source: R/util.R

new_tabR Documentation

Creates a new Rmarkdown html tab.

Description

Make sure that Rmd chunk option results='asis' is present.

Usage

new_tab(
  item,
  title = "Tab",
  header = 2,
  numbered = F,
  subtabs = F,
  pills = F,
  table = F
)

Arguments

item

An object to add into a new Rmd tab

title

Tab title

header

An int indicating Rmd html header level (e.g. 3 means "###")

numbered

A boolean for whether tab should be numbered or not

subtabs

A boolean for whether tab has subtabs below it or not

pills

A boolean for whether tab should be pill-shaped or not

table

A boolean for whether item is a table object or not

Examples

p <- ggplot(x, y, dat=somedata)
new_tab(p, title="My Plot", header=3)

pseastham-certara/pmx6 documentation built on July 18, 2022, 8:16 p.m.