Debian Codegraph @

man/csv_options.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/knitr.R
3 \name{csv_options}
4 \alias{csv_options}
5 \title{Parse comma-separated chunk options}
6 \usage{
7 csv_options(x)
8 }
9 \arguments{
10 \item{x}{The chunk options as a string.}
11 }
12 \value{
13 A list of chunk options.
14 }
15 \description{
16 For \pkg{knitr} and R Markdown documents, code chunk options can be written
17 using the comma-separated syntax (e.g., \verb{opt1=value1, opt2=value2}). This
18 function parses these options and returns a list. If an option is not named,
19 it will be treated as the chunk label.
20 }
21 \examples{
22 xfun::csv_options("foo, eval=TRUE, fig.width=5, echo=if (TRUE) FALSE")
23 }