inst/unitTests/test_getRI.R

## function to perform unit test for getRI

test_getRI <- function() {
    
    data(RItable)
    
    calcRI <- getRI(RItable = RItable)
    
    checkEquals(class(calcRI), "function")
    checkEquals(class(calcRI(15.0)), "numeric")
    checkEqualsNumeric(calcRI(10.0), 953.2374)
}

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.