Using roxygen2 to inherit only certain parameters

In roxygen2, you can use the @inheritParams tag to inherit the full set of parameters for another function. But is it possible to inherit only a specific subset of them? (Except in the case of inheritance ... which is properly handled by @inheritDotParams .)

+14
source share
1 answer

In the functionA header:

@inheritParams functionB , at least in Roxygen 6.0.0., will only inherit parameters from functionA A, which are also in functionB B. Any parameters that are common but that are defined in the functionA header will not be inherited from functionB .

So, the choice is built-in.

+9
source

Source: https://habr.com/ru/post/1269180/


All Articles