tests/testthat/test_identifyReplacementVariables.R

context("identifyReplacementVariables")

f <- findFilesInPackage('generateEnumeration.Rd', 'wyz.code.rdoc')
o <- identifyReplacementVariables(f[1])

test_that("identifyReplacementVariables", {
  expect_true(is.list(o))
  # expect_null(o[[1]]) # issue covr
  expect_error(identifyReplacementVariables('/tmp/not-a-file.Rd'))
})

Try the wyz.code.rdoc package in your browser

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

wyz.code.rdoc documentation built on Oct. 6, 2021, 9:07 a.m.