Nothing
context("Testing summary commands for set_parameter_matrix")
testthat::skip_on_cran()
testthat::test_that(
desc = "Testing print.",
code = {
model <- make_model("X -> Y")
model <- set_parameter_matrix(model)
out <- capture.output(CausalQueries:::print.parameter_matrix(model$P))
expect_true(any(grepl(" parameter set", out)))
}
)
testthat::test_that(
desc = "Testing summary.",
code = {
model <- make_model("X -> Y")
confound <- list(X = "(Y[X=1] > Y[X=0])", X = "(Y[X=1] == 1)")
model <- set_confound(model = model, confound = confound)
out <- capture.output(CausalQueries:::summary.parameter_matrix(model$P))
# bad test; but function currently not producing proper output
expect_true(any(grepl(" parameter set", out)))
}
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.