inst/testpkg/R/check_write_class.R

#' @export
#' @importFrom testthat expect_identical
check_write_class <- function(test.mat, expected) {
    expect_identical(expected, .Call("set_class_by_sexp", test.mat, PACKAGE="beachtest"))
}

Try the beachmat package in your browser

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

beachmat documentation built on Dec. 22, 2020, 2 a.m.