R/checkCallback.R

Defines functions checkCallback

checkCallback = function(callback, ... ){
  ret = as.integer(callback(...))
  if(ret) stop("Operation cancelled by callback function. ", ret)
  return(ret)
}

Try the BayesFactor package in your browser

Any scripts or data that you put into this service are public.

BayesFactor documentation built on May 29, 2024, 3:09 a.m.