halt function

Stop, log, and no call

Stop, log, and no call

Wrapper around base::stop() that logs the error message and then stops with call.=FALSE by default.

halt(..., call. = FALSE)

Arguments

  • ...: arguments passed to stop
  • call.: logical: print the call? Default is FALSE, unlike stop

Returns

Nothing. Raises an error.