This roclet checks presence of @return that generates \value in Rd files.

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

return_roclet()

Value

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

Examples

x <- "#' Summing two numbers\n#'\n#' @export\nf <- function(x, y) {\n   x + y\n}\n"
cat(x)
#> #' Summing two numbers
#> #'
#> #' @export
#> f <- function(x, y) {
#>    x + y
#> }
roxygen2::roc_proc_text(return_roclet(), x)
#> Functions with @export but no @return:
#>   * Function 'f()' with title 'Summing two numbers'
#> NULL