R/set_tryCatch.R

Defines functions set_tryCatch

set_tryCatch <- function(use_tryCatch=TRUE){
  if(isTRUE(use_tryCatch)){
    return(function(e){message(e);NULL})
  } else {
    return(function(e){stop(e)})
  }
}
RajLabMSSM/echolocatoR documentation built on Jan. 29, 2023, 6:04 a.m.