inst/unitTests/test_putTargetTable.R

## function to perform unit test for putTargetTable

test_putTargetTable <- function() {
    
    Test <- "Test"
    checkException(putTargetTable(target.table = Test), 
                   "target.table should be a list")    
    
    Table <- list()
    checkException(putTargetTable(target.table.file = Table), 
                   "Please provide a string for the output file name!")    
}

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.