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 July 5, 2022, 5:09 p.m.