Ordered CLI listSource:
An ordered list is a container, see containers.
cli_ol( items = NULL, id = NULL, class = NULL, .close = TRUE, .auto_close = TRUE, .envir = parent.frame() )
NULL, then a character vector. Each element of the vector will be one list item, and the list container will be closed by default (see the
Id of the list container. Can be used for closing it with
cli_end()or in themes. If
NULL, then an id is generated and returned invisibly.
Class of the list container. Can be used in themes.
Whether to close the list container if the
itemswere specified. If
FALSEthen new items can be added to the list.
Whether to close the container, when the calling function finishes (or
.enviris removed, if specified).
Environment to evaluate the glue expressions in. It is also used to auto-close the container if