param_roclet: Roclet: check consistency of 'param' documentation

View source: R/param_roclet.R

param_rocletR Documentation

Roclet: check consistency of param documentation

Description

This roclet checks consistency between function arguments and the documentation. The idea is to catch such errors earlier than in an R CMD check.

Generally you will not call this function directly but will instead use roxygen2::roxygenise() specifying this roclet.

Usage

param_roclet()

Value

A roclet to be used e.g. with roxygen2::roxygenise()

See Also

Other roclets: testthat_roclet, tinytest_roclet, examples_roclet, return_roclet, namespace_roclet, rd_roclet, vignette_roclet.

Other roclets: examples_roclet(), return_roclet(), testthat_roclet(), tinytest_roclet()

Examples

x <- "#' Summing two numbers\n#'\n#' @export\nf <- function(x, y) {\n   x + y\n}\n"
cat(x)
roxygen2::roc_proc_text(param_roclet(), x)


roxytest documentation built on Jan. 11, 2023, 5:14 p.m.