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 June 22, 2024, 6:49 p.m.