tests/testthat/test-var_coeff.R

# # Don't pull this if it's too simple
# out1 <- var_coeff(x = mtcars$wt)
# saveRDS(list(out1=out1),file = 'tests/testthat/var_coeff_out.rda')
test_that("var_coeff() with defaults and options set", {
  expected <- readRDS('var_coeff_out.rda')
  expect_equal(var_coeff(mtcars$wt), expected[[1]])
  
})

Try the wrappedtools package in your browser

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

wrappedtools documentation built on Sept. 24, 2023, 5:06 p.m.