-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's about roxygen2 type of documentation for DescTools? #56
Comments
Any ideas? |
Well, ehhh... hmm, not sure about that... |
There are automatic tools that may help. But the package is big, so I'd suggest a gradual transition. |
I aggree that it would be a good idea to transfer the documentation to roxygen2. So we could start with Desc which has insufficient documentation anyway. The documentation has grown historically and is undoubtedly chaotic in character.
as the calculations and the plots are extremely different. As a first step, I would split the Desc routines into specific files of their own in order to gain a better overview. |
To create separate documentation files, |
Could you be more specific about the required interface changes? Maybe this would be the moment to revise the functions and their interfaces (including the docu) ... |
E.g., in generic function In the next example, the same color shows the same argument and the numbers show their position: Usually, a good practice is to have all common arguments as positional ones before An exception is the So maybe it is a good time to consider which arguments could always be in the same positions at the beginning. Similar consistency principles could be applied to |
Good point, I will put things together ... |
Here we go:
actually not really worked out... |
It is brilliant! Task automation helps to spot things more easily. |
A few more questions/remarks:
|
Well, I think the situation needs an even more fundamental revision... |
@AndriSignorell, did you consider going from Rd documentation to markdown flavored roxygen2 documentation (which automatically generates Rd files)? It could be written in markdown so it is easier to read for developers (and spot typos and other discrepancies), the documentation is above the function so it is easier to understand what function does when you read
.R
files, some fields such asUsage
are auto-generated so it is easier to maintain the documentation. There are specialized packages (e.g., Rd2roxygen and roxygen2md), that alleviate transitioning from the manually written Rd files to roxygen2 documentation. And we can use GitHub Actions to build documentation every time the package is uploaded to GitHub (so it is not required to do it locally).roxygen2 can help to maintain the
NAMESPACE
file too.The text was updated successfully, but these errors were encountered: