tests/testthat/test-write_xlsx.r

test_that("write_xlsx", {
  
  skip_on_cran()
  
  tfile <- tempfile(fileext = '.xlsx')
  on.exit(unlink(tfile), add = TRUE)
  
  biom <- hmp5$clone()
  attr(biom, 'mtcars') <- head(mtcars)
  
  expect_silent(write_xlsx(biom, file = tfile))
  unlink(tfile)
  
  expect_silent(write_xlsx(rare5, file = tfile))
  
})

Try the rbiom package in your browser

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

rbiom documentation built on April 3, 2025, 6:39 p.m.