tests/testthat/test-addPriorGroups.R

test_that("addPriorGroups", {
  priorGroupDF = data.frame(label = c("x","y"),
                            priorGroup=1)
  assign("priorGroupDF",priorGroupDF, cacheEnv)
  assign("meaningfulLabels",data.frame(rootLabel = c("x","y"), newNames = c("x","y")), cacheEnv)
  drawsDF = data.frame(x=c(4,1),y=c(10,2))
  testthat::expect_no_error(causact:::addPriorGroups(drawsDF))

})

Try the causact package in your browser

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

causact documentation built on Sept. 8, 2023, 5:46 p.m.