Either data or file must be passed.

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

if (FALSE) ## (Run inside of an IRkernel)
display_text('Just text')
display_markdown('[MD](http://commonmark.org) *formatted*')
#> Warning: IRdisplay can only be used from the IPython R kernel and R magic.
display_javascript('execute(this)') # \dontrun{}
#> Warning: IRdisplay can only be used from the IPython R kernel and R magic.