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