inst/unitTests/test_optFrag.R

## function to perform unit test for optFrag

test_optFrag <- function() {
    
    data(Library)
    
    checkException(optFrag(Library = Library), 
                   "Either Targets or target.table should be provided!")
    
    data(Targets)
    
    checkException(optFrag(Targets = Targets), 
                    "A library should be provided for optimization!")
}

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.