Learn R Programming

document (version 3.3.4)

warn: Throw a Warning

Description

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

Usage

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

Value

The condition.

Arguments

message_string

The message to be thrown.

system_call

The call to be thrown.

...

Arguments to be passed to structure.

Details

We use this condition as a warning dedicated to document.

Examples

Run this code
tryCatch(document:::warn("Hello error!"), error = function(e) return(e))

Run the code above in your browser using DataLab