library(testthat)
library(PDATK)
data(sampleICGCmicro)
data(sampleCohortList)
test_that('RLSModel constructor works with SurvivalExperiment
trainCohorts',
{
expect_s4_class({
RLSmodel <- RLSModel(sampleICGCmicro, randomSeed=1987); RLSmodel
},'RLSModel')
expect_true(validObject(RLSmodel))
})
test_that('RLSModel constuctor works with CohortList
trainCohorts',
{
suppressMessages({
expect_s4_class({
RLSmodel <- RLSModel(CohortList(list(cohort1=sampleICGCmicro,
cohort2=sampleICGCmicro)), randomSeed=1987); RLSmodel
}, 'RLSModel')
expect_true(validObject(RLSmodel))
})
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.