tests/testthat/test-SaveAnalysis-fast.R

test_that("SaveAnalysis", {

  input <- new.env()
  load("RunhdpInternal.testdata/test.CombineChainsAndExtractSigs.Rdata",
       envir=input)

  input.catalog <-
    ICAMS::ReadCatalog("SBS96.ground.truth/ground.truth.syn.catalog.csv")

  my.tmpfile <- tempfile()
  retvalx <-
    SaveAnalysis(retval = input$retvalx,
                 out.dir = my.tmpfile,
                 diagnostic.plot = T,
                 overwrite = T,
                 input.catalog = input.catalog[1:10 , 1:15]
    )
  unlink(my.tmpfile, recursive = T) #remove the out.dir to avoid warning

  expect_null(retvalx)

})
steverozen/mSigHdp documentation built on Feb. 6, 2023, 1:36 a.m.