Learn R Programming

IRdisplay (version 1.1)

display_<text>: Display a specific textual output

Description

Either data or file must be passed.

Usage

display_text(data = NULL, file = NULL)

display_json(data = NULL, file = NULL)

display_javascript(data = NULL, file = NULL)

display_html(data = NULL, file = NULL)

display_markdown(data = NULL, file = NULL)

display_latex(data = NULL, file = NULL)

Arguments

data

The code or markup content as a character vector

file

The path to a file or a connection containing the content

See Also

display_<image>

Examples

Run this code
# NOT RUN {
## (Run inside of an IRkernel)
display_text('Just text')
display_markdown('[MD](http://commonmark.org) *formatted*')
display_javascript('execute(this)')
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab