context(".newCdadata")
test_that("check class of new object", {
newObject = .newCdadata()
expect_is(newObject, "cdadata")
expect_output(str(newObject), "List of 10")
expect_named(newObject, c('objects', 'eigenvalues', 'eigenvaluesAsPercentages', 'cumulativePercentageOfEigenvalues', 'groupMeans', 'rank',
'coeffs.std', 'coeffs.raw', 'totalCanonicalStructure', 'canrsq'))
expect_named(newObject$objects, c('ID', 'Population', 'Taxon', 'scores'))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.