inst/unitTests/test_getCPI.R

test_getCPI = function() {
    x = matrix(1:10, ncol = 2)
    y = matrix(1:15, ncol = 3)
    checkEquals(ncol(getCPI(x, y, 'combine')), 5L)
    checkEquals(ncol(getCPI(x, y, 'tensorprod')), 6L)
    checkEquals(ncol(getCPI(x, y, type = c('combine', 'tensorprod'))), 11L)
    checkEquals(ncol(getCPI(x, y, type = c('tensorprod', 'combine'))), 11L)
}

Try the BioMedR package in your browser

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

BioMedR documentation built on Nov. 17, 2017, 10:08 a.m.