inst/unitTests/test_readMSL.R

## function to perform unit test for readMSL

test_readMSL <- function() {
    
    data.path <- system.file("data", package = "SIMAT")
    
    checkException(readMSL(path = data.path), 
                   "Name of the MSL file should be provided!")
        
    checkException(readMSL(file.name = "Targets.MSL", path = data.path), 
                   "No MSL file found in the provided path!")   
}

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.