Debian Codegraph @

man/pandoc.formula.return.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/pandoc.R
3 \name{pandoc.formula.return}
4 \alias{pandoc.formula.return}
5 \alias{pandoc.formula}
6 \title{Formulas}
7 \usage{
8 pandoc.formula.return(
9 x,
10 text = NULL,
11 max.width = 80,
12 caption,
13 add.line.breaks = FALSE,
14 ...
15 )
16 }
17 \arguments{
18 \item{x}{formula}
19
20 \item{text}{text to be written before result in the same line. Typically used by calls from other functions in the package}
21
22 \item{max.width}{maximum width in characters per line}
23
24 \item{caption}{caption (string) to be shown under the formula}
25
26 \item{add.line.breaks}{if to add 2 line breaks after formula}
27
28 \item{...}{extra arguments passed by from parent call, disregarded}
29 }
30 \value{
31 By default this function outputs (see: \code{cat}) the result. If you would want to catch the result instead, then call the function ending in \code{.return}.
32 }
33 \description{
34 Pandoc's mardown formula.
35 }
36 \examples{
37 pandoc.formula(y ~ x)
38 pandoc.formula(formula(paste('y ~ ', paste0('x', 1:12, collapse = ' + '))))
39 }