Throws a condition of class c("document", "warning", "condition").
warn(message_string, system_call = sys.call(-1), ...)
The message to be thrown.
The call to be thrown.
Arguments to be passed to structure.
structure
The condition.
We use this condition as a warning dedicated to document.
# NOT RUN { tryCatch(document:::warn("Hello error!"), error = function(e) return(e)) # }
Run the code above in your browser using DataLab