pwd_styling: Add PWD styling to kable functions

View source: R/table-styles.R

pwd_stylingR Documentation

Add PWD styling to kable functions

Description

Add PWD styling to kable functions

Usage

pwd_styling(kable, options = c("striped", "bordered"), ...)

Arguments

kable

the kable that you with to style

options

the options to be passed to latex_options or bootstrap_options arguments in kable_extra depending on whether the format is latex or html, respectively

...

additional params to be passed to kable_styling

Details

This function will add styling to your kable tables used in Rmarkdown documents. It will add the "striped" option to the table and make the background of the column names PWD blue with white font. In pdf outputs it will also change the background color of the striped rows. If you are knitting to an HTML document than you will need to use the set_pwd_styling.

It is important to note that if you use this function, than you must pass all other arguments intended for kable_styling to this function. Currently, you can not use the kable_styling function on a kable that it has previously been applied to.


tbradley1013/pwdthemes documentation built on April 2, 2022, 1:34 a.m.