tests/testthat/test-independent-testing-rtf_output.R

test_that("If path_outdata = ... is not null, then the Rdata will be saved", {
  path <- paste0(tempdir(), "/iris.Rdata")
  expect_message(rtf_output(iris,
    path_outdata = path,
    path_outtable = NULL
  ))
  expect_true(file.exists(path))
})

test_that("If path_outtable = ... is not null, then the rtf will be saved", {
  path <- paste0(tempdir(), "/iris.rtf")
  expect_message(rtf_output(iris,
    path_outdata = NULL,
    path_outtable = path
  ))
  expect_true(file.exists(path))
})
Merck/metalite.ae documentation built on Feb. 10, 2025, 5:03 p.m.