writeRMDKable: rmarkdown Kable Writer

Description Usage Arguments Value Examples

Description

Wrapper to 'splitTable' that splits a data frame into a a list and writes out markdown slides to be read in as a child document to main markdown file

Usage

1
2
3
writeRMDKable(df, maxRows = 50, filename = tempfile(),
  slideTitle = "Table", otherText = NULL, repeatOther = TRUE,
  silent = TRUE, ...)

Arguments

df

A data.frame to split and write out

maxRows

The maximum number of rows for the new table(s)

filename

The filename of the rmarkdown document including extension.

slideTitle

Slide Title

otherText

Sub text prior to table

repeatOther

Logical. If 'TRUE' the sub text will be repeated on each slide

silent

Logical. If 'TRUE' reporting of the filename is suppressed.

...

Other arguments to 'kable'

Value

Nothing in R. A markdown document with the specified file name

Examples

1
2
3
4
5
6
7
{
  writeRMDKable(airquality, maxRows = 50, slideTitle = "Slide title", 
                otherText = "Extra information")
  writeRMDKable(airquality, maxRows = 50, slideTitle = "Slide title", 
                otherText = "Extra information",
                col.names = names(airquality))
}

MangoTheCat/slideBreakR documentation built on May 7, 2019, 2:23 p.m.