tests/testthat/test_DoSSnames.R

context("Construct list of subsets names from a description matrix.")
library(dst)
test_that("DoSSnames", {
  # T1. No column namest
  x1 <- matrix(c(0,1,1,1,1,1,1,0,1), ncol = 3)
  expect_error(DoSSnames(x1), "Column names missing. Add column names to your mamtrix.")
})

Try the dst package in your browser

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

dst documentation built on Sept. 11, 2024, 7:05 p.m.