huxtable (version 0.2.2)

print_md: Create Markdown representing a huxtable

Description

Create Markdown representing a huxtable

Usage

print_md(ht, ...)

to_md(ht, ...)

# S3 method for huxtable to_md(ht, max_width = 80, ...)

Arguments

ht
A huxtable.
...
Arguments passed to methods.
max_width
Max width in on-screen characters of the result.

Value

to_md returns a string. print_md prints the string and returns NULL.

Details

Only align and caption properties are used. The markdown format is multiline_tables, see the http://rmarkdown.rstudio.com/authoring_pandoc_markdown.html#tables.

See Also

Other printing functions: print_html, print_latex, print_screen

Examples

Run this code
ht <- huxtable(a = 1:5, b = 1:5)
print_md(ht)

Run the code above in your browser using DataLab