Closed joba00002 closed 2 years ago
Could you please add an abstract example showing how your new function can be used?
It also maybe an idea to add this abstract example to the function documentation to ease reuse of the function.
Where exactly should I put such an example? If by function documentation, you mean the documentation comment above it, then I'm not sure if I would put an example there. It would take up a fair amount of space, although it would be easy to find there.
Where exactly should I put such an example? If by function documentation, you mean the documentation comment above it, then I'm not sure if I would put an example there. It would take up a fair amount of space, although it would be easy to find there.
My idea was to put it in the roxygen2 function documentation, that is, directly before explaining the parameters via @param
.
We don't care about how much space it takes. More importantly, such an example would tell the user how this function can be practically used---and the function documentation would be the place where I would look for examples.
If you do think that such an example would be way too long (what I cannot imagine yet), you can also post the example here first before integrating it into the codebase.
This will be a useful utility for several new tests that are planned.
Signed-off-by: Jonathan Baumann joba00002@stud.uni-saarland.de
Prerequisites
showcase.R
with respect to my changes.dev
.Description
Changelog