-
Notifications
You must be signed in to change notification settings - Fork 8
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
Ensure consistency in roxygen argument selection, documentation and order in function headers #130
Comments
Sorry for being a bit late. Some first thoughts:
|
I would prefer using "Permitted values" for all parameters. Then this information is easier to find. At the moment we are not using "Permitted Values" consistently. I think it would be good to be consistent. |
Thanks @thomas-neitmann. Ross @rossfarrugia
Also, what about the Default: argument, I presume this is this only necessary when there is a default set in the function signature, even NULL? I can update this issues as part of: https://github.com/pharmaverse/admiralonco/tree/128_filter_pd_optional_assertions_updated%40devel Once confirmed. Thank you all |
|
I don't think having a Default is particularly useful. You already see that on top in the function signature. |
@rossfarrugia so shall I remove all default text, they are currently in the majority of admiralonco functions? This is also common in the admiral functions, e.g. https://github.com/pharmaverse/admiral/blob/main/R/derive_param_first_event.R#:~:text=%23%27%20%20%20*Default*%3A%20%60%22warning%22%60 |
Summary of discussions at core dev meeting (FYI @sgorm123)
Follow-up related issues created for later as FYI:
|
@rossfarrugia Ive removed all the defaults, updated to make filter_pd optional, and also removed duplicated assertions. Im just a little worried about creating a PR until the other items on the devel branch have been accepted, given that there will be conflicts. Should I wait a little to create the PR for issue #128 |
Closing to centralize as denoted in pharmaverse/admiral#1976 |
Please select a category the issue is focused on?
Function Documentation
Let us know where something needs a refresh or put your idea here!
Splitting out Discussion issue #80
Ensure consistency in roxygen argument selection, documentation of arguments (e.g. permitted values, required or optional, examples) and order in function headers
Awaiting @thomas-neitmann draft guidance on the above.
The text was updated successfully, but these errors were encountered: