library(testthat)
library(PDATK)
data(sampleICGCmicro)
set.seed(1987)
survModel <- SurvivalModel(trainCohorts=sampleICGCmicro, randomSeed=1987)
test_that('SurvivalModel models accessors work correctly', {
expect_s4_class(models(survModel), 'SimpleList')
expect_silent(models(survModel) <- models(survModel))
})
test_that('SurvivalModel validationStats accessors work correctly', {
expect_s3_class(validationStats(survModel), 'data.frame')
expect_silent(validationStats(survModel) <- validationStats(survModel))
})
test_that('SurvivalModel validationData accessors work correctly', {
expect_s4_class(validationData(survModel), 'CohortList')
expect_silent(validationData(survModel) <- validationData(survModel))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.