tests/testthat/test-rc.get.xcms.data.R

test_that("RAMClustR rc.get.xcms.data", {
  skip_if_not_installed("xcms")
  
  load(file.path("testdata", "test.fillpeaks"))
  expected <- readRDS(file.path("testdata", "rc.get.xcms.data.rds"))
  
  actual <- rc.get.xcms.data(xcmsObj = xdata)

  actual$history <- NA
  expected$history <- NA

  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.