danielwilhelm / R-CS-ranks

R package implementing confidence sets for ranks
https://danielwilhelm.github.io/R-CS-ranks/
GNU General Public License v3.0
5 stars 1 forks source link

improve documentation #4

Closed danielwilhelm closed 1 year ago

danielwilhelm commented 1 year ago

go through https://danielwilhelm.github.io/R-CS-ranks/index.html and the description of functions on https://danielwilhelm.github.io/R-CS-ranks/reference/index.html and improve the documentation

MrDomani commented 1 year ago

Work in progress on branch doc.
A lot of functions share the same parameters, output and references. Roxygen (tool for generating documentation, which we are using) enables us to share documentation sections across functions (e.g. with inheritParams tag, more here). Which means, that when we edit one, documentations for all shared functions are updated automatically.

Some unexported functions are also documented in code. This is considered a good practice. Right now, users can see their documentation pages, but cannot use the functions themselves. This can be easily resolved by noRd tag. Then their documentation is only visible in source code.

However, these functions also share parameters with other functions. What I propose to do is add noRd tags to internal (not exported) functions and use inherit tags extensively. When viewing an internal function with inherit tag, the developer can check them in docs of other functions - either manually or with ?, when possible.

danielwilhelm commented 1 year ago

Perfect! Also all good ideas!

MrDomani commented 1 year ago