inst/unitTests/test_plotEIC.R

## function to perform unit test for plotEIC

test_plotEIC <- function() {
    
    checkException(plotEIC(fig.name = "Fig1"), "A peak EIC should be provided!")                   
    
    eic <- list()
    checkException(plotEIC(peakEIC = eic), "Empty peak EIC!")
    
    checkException(plotEIC(peakEIC = 1:5), "peakEIC should be a list!")
}

Try the SIMAT package in your browser

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

SIMAT documentation built on Nov. 8, 2020, 8:27 p.m.