tests/testthat/test-rc.feature.replace.na.R

test_that("RAMClustR rc.feature.replace.na", {
  set.seed(123) # to get reproducible results with jitters
  ramclustObj <- readRDS(file.path("testdata", "rc.expand.sample.names.rds"))
  expected <- readRDS(file.path("testdata", "rc.feature.replace.na.rds"))
  
  actual <- rc.feature.replace.na(ramclustObj = ramclustObj)

  expect_equal(actual, expected)
})

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.