R/stop_early.R
stop_early.Rd
Stop a function early without an error.
stop_early(msg = "Exiting function early.")
Message to print.
Null
testfun <- function(...) {stop_early(); message("Completed function."); 1} if(interactive()) testfun()