Conditionally format messages

msg(format, ..., pretty = TRUE)

Arguments

format

character vector of format strings

...

vectors (coercible to integer, real, or character)

pretty

if TRUE, message is passed to base::prettyNum().

Examples

quanteda:::msg("you cannot delete %s %s", 2000, "documents")
#> [1] "you cannot delete 2,000 documents"