format_traditional | R Documentation |
Format the result of running a block of code
format_traditional(x)
format_copypaste(x)
x |
the result of running the code. See 'details' for the format. |
The input vector x
should be a list. Each element of this list should
be a list with two elements: input
and output
. input
should contain the evaluated expression; this can be more than one line.
output
should contain the output of the evaluation. When there is no
output this is character vector of length 0.
A character vector of length 1 with the formatted code.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.