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)
})

Try the RAMClustR package in your browser

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

RAMClustR documentation built on Oct. 20, 2023, 5:08 p.m.