Learn R Programming

fakemake (version 1.9.0)

throw: Throw a Condition

Description

Throws a condition of class c("error", "fakemake", "condition").

Usage

throw(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 base::structure.

Value

The function does never return anything, it stops with a condition of class c("error", "fakemake", "condition").

Details

We use this condition as an error dedicated to fakemake.

Examples

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

Run the code above in your browser using DataLab