tests/testthat/test_errormessages.R

library(ASSIGN)
library(testthat)
data(testData1)
data(trainingData1)
data(geneList1)

context("Test error messages that were previously unclear.")

test_that("test no trainingLabels", {
  expect_error(assign.wrapper(trainingData = trainingData1,
                              trainingLabel = NULL,
                              testData = testData1,
                              geneList = geneList1, n_sigGene = NULL,
                              outputDir = tempfile()), "You must supply trainingLabels when specifying trainingData!")
})

Try the ASSIGN package in your browser

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

ASSIGN documentation built on Nov. 8, 2020, 8:29 p.m.