catf()
, messagef()
, warningf()
and stopf()
are wrappers around base::cat()
,
base::message()
, base::warning()
and base::stop()
, respectively.
The call is not included for warnings and errors.
Usage
catf(msg, ..., file = "", wrap = FALSE)
messagef(msg, ..., wrap = FALSE)
warningf(msg, ..., wrap = FALSE)
stopf(msg, ..., wrap = FALSE)
Arguments
- msg
(
character(1)
)
Format string passed tobase::sprintf()
.- ...
(
any
)
Arguments passed down tobase::sprintf()
.- file
(
character(1)
)
Passed tobase::cat()
.- wrap
(
integer(1)
|logical(1)
)
If set to a positive integer,base::strwrap()
is used to wrap the string to the provided width. If set toTRUE
, the width defaults to0.9 * getOption("width")
. If set toFALSE
, wrapping is disabled (default). If wrapping is enabled, all whitespace characters ([[:space:]]
) are converted to spaces, and consecutive spaces are converted to a single space.