inst/unitTests/test_writeMSL.R

## function to perform unit test for writeMSL

test_writeMSL <- function() {
    
    data(Targets)
    
    checkException(writeMSL(Targets = Targets), 
                   "Either the targets or the file name is missing!")
        
    checkException(writeMSL(target.file.name = "Targets.MSL"), 
                   "Either the targets or the file name is missing!")   
}

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.