AngusMcLure / PoolPoweR

Power and sample size calculations for surveys using pool testing (AKA group testing)
GNU General Public License v3.0
0 stars 1 forks source link

Use @inherits in roxygen to simplify documentation #28

Open AngusMcLure opened 7 months ago

AngusMcLure commented 7 months ago

We can use @inherits to simplify the documentation of functions like design_effect and optimise_X since these functions reuse many of the arguments used in fi_pool and fi_pool_cluster. In general I think the @inherits should follow the dependency graph, i.e. document the parameters in the lowest (exported) function that uses that argument, and then use @inherits to propagate them through the docs

This will ensure consistent documentation across function and reduce the number of places we need to edit if we want to change something in the docs.

Not urgent, but helpful

fredjaya commented 7 months ago

Agree! Planning on doing it in the next round of improving documentation 😎https://github.com/AngusMcLure/PoolPoweR/blob/2e4878e15b389cca8c150fe5158c460220280384/CHANGELOG.md?plain=1#L32

AngusMcLure commented 7 months ago

Awesome!