Close a CLI container

cli_end(id = NULL)

Arguments

id

Id of the container to close. If missing, the current container is closed, if any.

Examples

## If id is omitted cli_par()
#>
cli_text("First paragraph")
#> First paragraph
cli_end() cli_par() cli_text("Second paragraph")
#> Second paragraph
cli_end()
#>