tests/testthat/test_cvar_edge.R

test_that("cvar returns NA with NA inputs (no na.rm handled)", {
  x <- c(1,2,NA,4)
  expect_true(is.na(cvar(x)))
})

Try the BioStatR package in your browser

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

BioStatR documentation built on Sept. 15, 2025, 5:08 p.m.