WiP_STASH/tests/runit.checkmacroformat.R

test.checkMacroFormat <- function(){
  
  checkException( checkMacroFormat( 1:10 ) , 
    msg = "not a data frame")
    
  checkException( checkMacroFormat( iris[1:10, ]), 
    msg = "more than one row")  

 checkTrue(checkMacroFormat(data.frame(x =1 )))
}
MikeKSmith/MSToolkit documentation built on Feb. 15, 2024, 5:32 p.m.