Let's say I have a simple function like so:
- Code: Select all
test_function <- function(a,b)
{
a+b
}
then, the (basic) roxygen markup for this functions would look like so:
- Code: Select all
#'
#' <description>
#' @param a <description>
#' @param b <description>
test_function <- function(a,b)
{
a+b
}
I would like to write a plugin (or macro if that's what it would be called in this context) to automatically generate the template. I select the function and it could automatically generate the above based on what's in the function(....)
Note that the <description> is just (my) place holder to indicate that one could (but does not have to) describe what that parameter (or function in the case of the top most line) does.
Ideas or suggestions?
thanks.