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))
})

Try the metalite.ae package in your browser

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

metalite.ae documentation built on Oct. 30, 2024, 9:14 a.m.