tests/testthat/test-LDA_activity.R

test_that("form", {
  data(LDAdata)
  cell.line <- unique(LDAdata$name)[1]
  x <- subset.data.frame(LDAdata, subset = (name==cell.line))
  x <- x[,c(4,5,6,3,2,1)]
  act <- LDA_activity(x)
  expect_equal(class(act), "LDA_activity_list")
  expect_error(LDA_activity(list(x)))
  expect_warning(LDA_activity(x[,1:3]))
})

Try the LDAcoop package in your browser

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

LDAcoop documentation built on Sept. 12, 2024, 7:43 a.m.