tests/testthat/test_subsetTo.R

library(PharmacoGx)

context("Checking subset.")

test_that("Intersection result did not change since last time", {
data(CCLEsmall)
CCLEsmaller <- subsetTo(CCLEsmall, drugs=drugNames(CCLEsmall), cells=cellNames(CCLEsmall))
expect_equal(CCLEsmaller@annotation, CCLEsmall@annotation)
expect_equal(attributes(CCLEsmaller@molecularProfiles$rna), attributes(CCLEsmall@molecularProfiles$rna))
})

Try the PharmacoGx package in your browser

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

PharmacoGx documentation built on Feb. 28, 2021, 2 a.m.