powered by
@return
This roclet checks presence of @return that generates \value in Rd files.
\value
Rd
Generally you will not call this function directly but will instead use roxygen2::roxygenise() specifying this roclet.
roxygen2::roxygenise()
return_roclet()
A roclet to be used e.g. with roxygen2::roxygenise()
Other roclets: testthat_roclet, tinytest_roclet, param_roclet, examples_roclet, namespace_roclet, rd_roclet, vignette_roclet.
testthat_roclet
tinytest_roclet
param_roclet
examples_roclet
namespace_roclet
rd_roclet
vignette_roclet
Other roclets: examples_roclet(), param_roclet(), testthat_roclet(), tinytest_roclet()
examples_roclet()
param_roclet()
testthat_roclet()
tinytest_roclet()
x <- "#' Summing two numbers\n#'\n#' @export\nf <- function(x, y) {\n x + y\n}\n" cat(x) roxygen2::roc_proc_text(return_roclet(), x)
Run the code above in your browser using DataLab