tests/testthat/helper-abseps.R

# Evaluates 'code' with the absolute error tolerance 'eps' for the rectangles
# computed by the Genz-Bretz algorithm (.pmvn_genz()), so that results can be
# compared with exact values at a tolerance of 1e-5
with_abseps <- function(code, eps = 1e-6) {
  op <- options(DesignComplexSurvival.genz_abseps = eps)
  on.exit(options(op))
  force(code)
}

Try the DesignComplexSurvival package in your browser

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

DesignComplexSurvival documentation built on Nov. 23, 2026, 5:07 p.m.