tests/testthat/test-process_dimred.R

context("Testing .process_dimred")

test_that("Testing .process_dimred", {
  sp <- matrix(runif(1:10), nrow = 2)
  new_sp <- .process_dimred(sp, c("A", "B"))
  expect_identical(rownames(new_sp), c("A", "B"))
  expect_identical(colnames(new_sp), paste0("comp_", seq_len(5)))
})

Try the dyndimred package in your browser

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

dyndimred documentation built on March 23, 2021, 9:06 a.m.