tests/testthat/helper_functions.R

# Used to check that x is a vector in which x[i+1] >= x[i] for all i.
expect_nondecreasing <- function(x, tolerance, scale){
  expect_equal(diff(x) >= 0,rep(TRUE,length(x) - 1), tolerance = tolerance, scale = scale)
}
  

Try the mr.mashr package in your browser

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

mr.mashr documentation built on Jan. 7, 2026, 9:06 a.m.