tests/testthat/test_verifyDocumentationFile.R

context("verifyDocumentationFile")

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

g <- findFilesInPackage('warning.Rd', 'wyz.code.rdoc')
p <- verifyDocumentationFile(g[1])

test_that("verifyDocumentationFile", {
  expect_true(grepl('Error', o, fixed = TRUE))
  expect_true(grepl('checkRd', p, fixed = TRUE))
})

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.