Skip to content

generate roxygen from R code? #645

@kevinushey

Description

@kevinushey

It'd be nice if we could have something like @evalRd, but @evalRoxygen, which takes the output of some R function and treats it as though it were part of the current Roxygen block. For example, suppose you were documenting the same function multiple times, but it took different default arguments in different functions. It'd be nice to be able to write:

## function a
#' @eval roxygen_parameter(default = "foo")

## function b
#' @eval roxygen_parameter(default = "bar")

In this case, roxygen_parameter() is some function defined by the user in the package's namespace, and the output of that function is used to generate the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions