powered by
Assert that a condition is true.
crew_assert(value = NULL, ..., message = NULL, envir = parent.frame())
NULL (invisibly). Throws an error if the condition is not true.
NULL
An object or condition.
Conditions that use the "." symbol to refer to the object.
"."
Optional message to print on error.
Environment to evaluate the condition.
Other utility: crew_clean(), crew_deprecate(), crew_eval(), crew_random_name(), crew_retry(), crew_terminate_process(), crew_terminate_signal(), crew_worker()
crew_clean()
crew_deprecate()
crew_eval()
crew_random_name()
crew_retry()
crew_terminate_process()
crew_terminate_signal()
crew_worker()
crew_assert(1 < 2) crew_assert("object", !anyNA(.), nzchar(.)) tryCatch( crew_assert(2 < 1), crew_error = function(condition) message("false") )
Run the code above in your browser using DataLab