tests/testthat/test-rc.qc.R

test_that("RAMClustR rc.qc", {
  wd <- getwd()
  tmp <- tempdir()
  ramclustObj <- readRDS(file.path("testdata", "clustering", "only_rt_rc.ramclustr.rds"))
  expected <- readRDS(file.path("testdata", "rc.qc.rds"))
  
  setwd(tmp)

  actual <- rc.qc(ramclustObj = ramclustObj)

  expect_equal(actual, expected)

  setwd(wd)
})
cbroeckl/RAMClustR documentation built on March 23, 2024, 6:45 p.m.