document (version 2.2.1)

warn: Throw a Warning

Description

Throws a condition of class c("document", "warning", "condition").

Usage

warn(message_string, system_call = sys.call(-1), ...)

Arguments

message_string

The message to be thrown.

system_call

The call to be thrown.

...

Arguments to be passed to structure.

Value

The condition.

Details

We use this condition as a warning dedicated to document.

Examples

Run this code
# NOT RUN {
tryCatch(document:::warn("Hello error!"), error = function(e) return(e))
# }

Run the code above in your browser using DataCamp Workspace