Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pandoc.formula.return

Formulas


Description

Pandoc's mardown formula.

Usage

pandoc.formula.return(x, text = NULL, max.width = 80, caption,
  add.line.breaks = FALSE, ...)

Arguments

x

formula

text

text to be written before result in the same line. Typically used by calls from other functions in the package

max.width

maximum width in characters per line

caption

caption (string) to be shown under the formula

add.line.breaks

if to add 2 line breaks after formula

...

extra arguments passed by from parent call, disregarded

Value

By default this function outputs (see: cat) the result. If you would want to catch the result instead, then call the function ending in .return.

Examples

pandoc.formula(y ~ x)
pandoc.formula(formula(paste('y ~ ', paste0('x', 1:12, collapse = ' + '))))

pander

An R 'Pandoc' Writer

v0.6.3
AGPL-3 | file LICENSE
Authors
Gergely Daróczi [aut, cre] (<https://orcid.org/0000-0003-3149-8537>), Roman Tsegelskyi [aut]
Initial release
2018-11-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.