tests/testthat/test_computeDocumentationStatistics.R

context("computeDocumentationStatistics")

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

test_that("computeDocumentationStatistics", {
  expect_true(data.table::is.data.table(o))
  expect_equal(ncol(o), 3L)
})

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.