inst/Runit/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 )))
}

Try the MSToolkit package in your browser

Any scripts or data that you put into this service are public.

MSToolkit documentation built on May 2, 2019, 6:30 p.m.