EVOLUTION-MANAGER
Edit File: cli_li.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: CLI list item(s)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for cli_li {cli}"><tr><td>cli_li {cli}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>CLI list item(s)</h2> <h3>Description</h3> <p>A list item is a container, see <a href="containers.html">containers</a>. </p> <h3>Usage</h3> <pre> cli_li( items = NULL, labels = names(items), id = NULL, class = NULL, .auto_close = TRUE, .envir = parent.frame() ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>items</code></td> <td> <p>Character vector of items, or <code>NULL</code>.</p> </td></tr> <tr valign="top"><td><code>labels</code></td> <td> <p>For definition lists the item labels.</p> </td></tr> <tr valign="top"><td><code>id</code></td> <td> <p>Id of the new container. Can be used for closing it with <code><a href="cli_end.html">cli_end()</a></code> or in themes. If <code>NULL</code>, then an id is generated and returned invisibly.</p> </td></tr> <tr valign="top"><td><code>class</code></td> <td> <p>Class of the item container. Can be used in themes.</p> </td></tr> <tr valign="top"><td><code>.auto_close</code></td> <td> <p>Whether to close the container, when the calling function finishes (or <code>.envir</code> is removed, if specified).</p> </td></tr> <tr valign="top"><td><code>.envir</code></td> <td> <p>Environment to evaluate the glue expressions in. It is also used to auto-close the container if <code>.auto_close</code> is <code>TRUE</code>.</p> </td></tr> </table> <h3>Details</h3> <h4>Nested lists</h4> <div class="sourceCode r"><pre>fun <- function() { ul <- cli_ul() cli_li("one:") cli_ol(letters[1:3]) cli_li("two:") cli_li("three") cli_end(ul) } fun() </pre></div> <div class="asciicast" style="color: #172431;font-family: 'Fira Code',Monaco,Consolas,Menlo,'Bitstream Vera Sans Mono','Powerline Symbols',monospace;line-height: 1.300000"><pre> #> • one: #> 1. a #> 2. b #> 3. c #> • two: #> • three </pre></div> <h3>Value</h3> <p>The id of the new container element, invisibly. </p> <hr /><div style="text-align: center;">[Package <em>cli</em> version 3.4.1 <a href="00Index.html">Index</a>]</div> </body></html>