printMD: Pretty printing of R objects for Markdown output

Description Usage Arguments Value Author(s) Examples

Description

Pretty printing of R objects for Markdown output

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
printMD(x, ...)

## Default S3 method:
printMD(x, ...)

## S3 method for class 'double'
printMD(x, big.mark = ",",
  digits = pander::panderOptions("digits"), ...)

## S3 method for class 'integer'
printMD(x, big.mark = ",", ...)

## S3 method for class 'Dependency'
printMD(x, target, format = c("markdown", "html",
  "reference", "md reference"), text = x$title, ...)

Arguments

x

Object to be printed

...

Additional arguments

big.mark

Separator used to mark intervals before the decimal point.

digits

Number of sinificant digits to display, passed to format

target

Specify an anchor in the output document for x that the link should point to.

format

Format type to use.

text

Text that should be displayed as part of the link.

Value

String representation of x formatted for printing.

Author(s)

Peter Humburg

Examples

1
2
3
4
printMD(head(cars))
printMD(10000)
          printMD(10^6)
printMD(10000L)

humburg/reportmd documentation built on May 17, 2019, 9:13 p.m.