Description Usage Arguments Value Note Author(s) See Also Examples
This function sinks a Cascading Style Sheet (CSS) to the working directory (default) or a specified directory to stylize a knitr HTML document.
1 |
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. |
Returns a file called style.css to the working directory or other specified directory.
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.
Erica Wozniak
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.