ui.output_code

ui.output_code(id, placeholder=True)

Create a output container for code (monospaced text).

This is similar to output_text, except that it displays the text in a fixed-width container with a gray-ish background color and border.

Parameters

id: str

An output id.

placeholder: bool = True

If the output is empty or None, should an empty rectangle be displayed to serve as a placeholder? (This does not affect behavior when the output is nonempty.)

Returns

Type Description
Tag A UI element

Note

This function is currently the same as output_text_verbatim, but this may change in future versions of Shiny.

See Also

Example

See output_text