Description Usage Arguments Details See Also Examples
This function can be used directly, or via the {.val ...}
inline
style. {.val {expr}}
calls cli_format()
automatically on the value
of expr
, before styling and collapsing it.
1 2 3 4 5 6 7 8 9 10 | cli_format(x, style = NULL, ...)
## Default S3 method:
cli_format(x, style = NULL, ...)
## S3 method for class 'character'
cli_format(x, style = NULL, ...)
## S3 method for class 'numeric'
cli_format(x, style = NULL, ...)
|
x |
The object to format. |
style |
List of formatting options, see the individual methods for the style options they support. |
... |
Additional arguments for methods. |
It is possible to define new S3 methods for cli_format
and then
these will be used automatically for {.val ...}
expressions.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.