inst/unitTests/test_insert.R

test_insert <- function() {
    checkEquals(insert(1:3,4,4), c(1:4))
    checkEquals(insert(1:3,4,4:6),c(1:6))
    checkEquals(length(insert(1:2,4,4)),4)
    checkTrue(any(is.na(insert(1:2,4,4))))
}

Try the clustComp package in your browser

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

clustComp documentation built on Nov. 8, 2020, 5:54 p.m.