Say I am writing a small R package, including two functions with exaccty same arguments except one. Here is an example:
fct1 <- function(r, K){...} fct2 <- function(r, p, K){...}
In my documentation on the first roxygen2 function, I use the following tags:
For the second function, I use the following tags:
After processing my code with roxygenize, the .Rd file for the fct2 function presents the arguments in the following order: p, r, K. I would like them to be in the same order as in the usage section, that is: r, p , K. How can I get this order without manually modifying the .Rd file?
I insist on using @inheritParams to avoid copying and pasting.
Thanks!
source share