tests/testthat/helper.R

eq_with_class = function(x, y){
    if (is.list(y)) {
        if (length(y)) {
            for ( i in 1:length(y)) {
                class(y[[i]]) = 're2_matrix'
            }
        }
    } else {
        class(y) = 're2_matrix'
    }
    expect_equivalent(x,y)
}

Try the re2r package in your browser

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

re2r documentation built on May 2, 2019, 12:35 p.m.