Debian Codegraph @

man/set_alias.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/defaults.R
3 \name{set_alias}
4 \alias{set_alias}
5 \title{Set aliases for chunk options}
6 \usage{
7 set_alias(...)
8 }
9 \arguments{
10 \item{...}{Named arguments. Argument names are aliases, and argument values
11 are real option names.}
12 }
13 \value{
14 \code{NULL}. \code{opts_knit$get('aliases')} is modified as the side effect.
15 }
16 \description{
17 We do not have to use the chunk option names given in \pkg{knitr}; we can set
18 aliases for them. The aliases are a named character vector; the names are
19 aliases and the elements in this vector are the real option names.
20 }
21 \examples{
22 set_alias(w = "fig.width", h = "fig.height")
23 # then we can use options w and h in chunk headers instead of fig.width and
24 # fig.height
25 }