sink_css: Customized knitr CSS

Description Usage Arguments Value Note Author(s) See Also Examples

Description

This function sinks a Cascading Style Sheet (CSS) to the working directory (default) or a specified directory to stylize a knitr HTML document.

Usage

1
sink_css(dir, font_body, font_table, font_header, font_size, max_width)

Arguments

dir

Directory location to sink CSS file. Optional; defaults to current working directory.

font_body

Font used for the body of the document. Optional; defaults to Palatino Linotype.

font_table

Font used for table contents. Optiona; defaults to Palatino Linotype.

font_header

Font used for table headers. Optional; defaults to Palatino Linotype.

font_size

Font size for the body of the document. Optional; defaults to 11pt.

max_width

Maximum text width for the document body. Optional; defaults to 45em.

Value

Returns a file called style.css to the working directory or other specified directory.

Note

This function has no required inputs. <br> Only the base font size can be altered at present. Other font sizes in the document are calculated relative to the specified size for the document body.

Author(s)

Erica Wozniak

See Also

reportR

Examples

1
2
3
4
5
6
7
8
9
# Minimal required inputs
sink_css()

# Change the fonts and widen the document output
sink_css(font_body   = "Garamond", 
         font_table  = "Consolas", 
         font_header = "Garamond", 
         font_size   = 14, 
         max_width   = 60)

emwozniak/reportR documentation built on May 16, 2019, 5:11 a.m.