Create a Statement
object.
Statement
objects are used to create structured normal, warning or
error messages.
Statement(general, specifics = NULL, env = NULL, decorate = NULL, ...)
general | A single character which gives a general statement of a message. |
---|---|
specifics | Optional. A character vector which gives a list of details
of a message. If |
env | Optional. An environment or named list which is used
to evaluate the R code in the above arguments.
See "Examples" section and |
decorate | Optional. |
... | Optional. Additional arguments which can be passed to
|
A list of class Statement
.
trigger()
for generating normal, warning and error messages.
vignette("erify")
for a gentle introduction to this package.
# quick example general <- "I am the general statement of the message." specifics <- c("Detail 1.", i = "Detail 2.", `*` = "Detail 3") Statement(general, specifics)#> I am the general statement of the message. #> #> ✖ Detail 1. #> ℹ Detail 2. #> * Detail 3# do not decorate bullets Statement(general, specifics, decorate = FALSE)#> I am the general statement of the message. #> #> Detail 1. #> iDetail 2. #> *Detail 3#> `x` is `1`.