library(xgxr)
context("Data Check")
data_missing <- data.frame(x = 1)
test_that("xgx_check_data throws correct errors", {
expect_warning(
expect_error(
xgx_check_data(data_missing),
"These columns must be present in the dataset: ID,EVID,AMT,TIME,DV,YTYPE"),
"Setting CENS column equal to 0")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.