tests/testthat/test-COMPASS.R

context("COMPASS Interface")

source("helper-init.R")

## these should run without problem
tmp <- COMPASS(CC,
  treatment=trt == "Treatment",
  control=trt == "Control",
  category_filter=NULL,
  iterations=10,
  verbose=FALSE
)

expect_identical( tmp$fit$call$treatment, quote(trt == "Treatment") )

# trt_expr <- quote(trt == "Treatment")
# control_expr <- quote(trt == "Control")
#
# tmp <- COMPASS(CC,
#   treatment=trt_expr,
#   control=control_expr,
#   category_filter=NULL,
#   iterations=10,
#   verbose=FALSE
# )
#
# expect_identical( tmp$fit$call$treatment, quote(trt == "Treatment") )

Try the COMPASS package in your browser

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

COMPASS documentation built on Nov. 8, 2020, 8:05 p.m.