Learn R Programming

huxtable (version 4.7.1.9000)

markdown: Format cell content as markdown

Description

Cells where the markdown property is TRUE will be rendered as markdown.

Usage

markdown(ht)
markdown(ht) <- value
set_markdown(ht, row, col, value = TRUE)
map_markdown(ht, row, col, fn)

Arguments

ht

A huxtable.

row

A row specifier. See rowspecs for details.

col

An optional column specifier.

fn

A mapping function. See mapping-functions for details.

value

A logical vector or matrix.

Set to NA to reset to the default, which is FALSE.

Value

markdown() returns the markdown property. set_markdown() returns the modified huxtable.

Details

Markdown is currently implemented for HTML and LaTeX only. There is basic support for on-screen display. The only extension used is "strikethrough": write ~text~ to strike through text.

See Also

set_markdown_contents(), a shortcut function.

Examples

Run this code
# NOT RUN {
jams[3, 2] <- "~2.10~ **Sale!** 1.50"
set_markdown(jams, 3, 2)

# }

Run the code above in your browser using DataLab