powered by
Throws a condition of class c("error", "fakemake", "condition").
throw(message_string, system_call = sys.call(-1), ...)
The message to be thrown.
The call to be thrown.
Arguments to be passed to base::structure.
base::structure
The function does never return anything, it stops with a condition of class c("error", "fakemake", "condition").
We use this condition as an error dedicated to fakemake.
# NOT RUN { tryCatch(fakemake:::throw("Hello error!"), fakemake = function(e) return(e)) # }
Run the code above in your browser using DataLab