See containers.
cli_par(id = NULL, class = NULL, .auto_close = TRUE, .envir = parent.frame())
Element id, a string. If NULL, then a new id is generated and returned.
NULL
Class name, sting. Can be used in themes.
Whether to close the container, when the calling function finishes (or .envir is removed, if specified).
.envir
Environment to evaluate the glue expressions in. It is also used to auto-close the container if .auto_close is TRUE.
.auto_close
TRUE
The id of the new container element, invisibly.
# NOT RUN { id <- cli_par() cli_text("First paragraph") cli_end(id) id <- cli_par() cli_text("Second paragraph") cli_end(id) # }
Run the code above in your browser using DataCamp Workspace