no {cli} | R Documentation |
Pluralization helper functions
Description
Pluralization helper functions
Usage
no(expr)
qty(expr)
Arguments
expr |
For |
See Also
Other pluralization:
pluralization
,
pluralize()
Examples
nfile <- 0; cli_text("Found {no(nfile)} file{?s}.")
#> Found no files.
nfile <- 1; cli_text("Found {no(nfile)} file{?s}.")
#> Found 1 file.
nfile <- 2; cli_text("Found {no(nfile)} file{?s}.")
#> Found 2 files.
[Package cli version 3.6.5 Index]