Skip to content
Prev 8389 / 12125 Next

[R-pkg-devel] Advice on elegant way to alias function name

On Fri, Sep 2, 2022 at 3:22 PM J C Nash <profjcnash at gmail.com> wrote:
All you need is:

#' @export
#' @rdname wrapnlsr
nlsr <- wrapnlsr

That will document nlsr and nlsr together in the same file.

In general, if you find yourself having to use `@usage` or `@aliases`
to get R CMD check to pass cleanly, something is off with the way
you're documenting your functions.

Hadley