Debian Codegraph @

man/knitr_options_html.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/html_document.R
3 \name{knitr_options_html}
4 \alias{knitr_options_html}
5 \title{Knitr options for an HTML output format}
6 \usage{
7 knitr_options_html(fig_width, fig_height, fig_retina, keep_md, dev = "png")
8 }
9 \arguments{
10 \item{fig_width}{Default width (in inches) for figures}
11
12 \item{fig_height}{Default height (in inches) for figures}
13
14 \item{fig_retina}{Scaling to perform for retina displays (defaults to 2, which
15 currently works for all widely used retina displays). Set to \code{NULL} to
16 prevent retina scaling. Note that this will always be \code{NULL} when
17 \code{keep_md} is specified (this is because \code{fig_retina} relies on
18 outputting HTML directly into the markdown document).}
19
20 \item{keep_md}{Keep the markdown file generated by knitting.}
21
22 \item{dev}{Graphics device to use for figure output (defaults to png)}
23 }
24 \value{
25 An list that can be passed as the \code{knitr} argument of the
26 \code{\link{output_format}} function.
27 }
28 \description{
29 Define knitr options for an R Markdown output format that creates
30 HTML output.
31 }
32 \seealso{
33 \link{knitr_options}, \link{output_format}
34 }