tests/testthat/test-defunct.R

test_that("Defunct functions gives the right messages", {
  expect_error(
    slip_in_seqfield(),
    "run_word_field"
  )
  expect_error(
    slip_in_column_break(),
    "run_columnbreak"
  )
  expect_error(
    slip_in_xml(),
    "fpar"
  )
  expect_error(
    slip_in_text(),
    "fpar"
  )
  expect_error(
    slip_in_footnote(),
    "run_footnote"
  )
})

Try the officer package in your browser

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

officer documentation built on Oct. 10, 2024, 1:06 a.m.