-
Notifications
You must be signed in to change notification settings - Fork 1
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
Documentation #52
Comments
Ta! Also see #34 |
Oh missed that, probably could've just piggy backed. I was thinking about looking at this today and doing a PR. I reckon it's a good idea to split up the functions across more man pages. More user friendly that way, and be able to write up more pointed documentation. I'm thinking relabeling for consistency:
And breaking up the auto-generated ones
The
And I'll make sure there's at least one example for each exported function. Thoughts? |
Awesome, that documentation structure looks great! The only other thought I had is combining the corresponding expect and chk functions into the one man page, but that might be a bit weird because the function signature and use case are quite different, what do you think? Personally I prefer |
@gorcha Sweet :) Yeah, it seems to do exactly rdname does only with the addition of that Functions section: I think it's better to keep them separate and link them using |
@gorcha slightly off topic, but I'm just documenting the chk_text_miss functions --- what exactly is the envisioned use-case for these? |
@gorcha Do you think it's worth addressing the inconsistency between |
Good question! They're related to some of the text cleaning in the sample cleaning functions, essentially for making sure that any missing placeholders that might have crept in from other systems are removed. Not 100% sure of their usefulness, it's almost a special case of |
Also yes definitely re: |
Cool, have opened a new issue for Hm, I can't really come up with a good example to demonstrate their usefulness. The only thing I can think of is: clean <- ifelse(chk_text_miss(dirty), "", dirty) But that doesn't really seem like a job for I can't really think of anything for |
Yeah agreed. I think |
It might be good to have a more direct |
I'm gonna open up an issue for it specifically |
Clean up documentation and intro vignette and add missing examples. Close #52, close #34. * Reorganise man pages (#52) * Fix links in vignette (#34) * Add examples (#52) * Minor documentation updates and code formatting * Vignette updates and associated changes (#34) Co-authored-by: Kinto <kinto.behr@gmail.com> Co-authored-by: Danny Smith <danny@gorcha.org>
Looks good to me. Only thing that should be fixed before this is merged are the links in the vignette.
Actually the whole "Categories" section probably needs a revamp given that it doesn't really align with the "Expectations" section of the "Reference" page.
But looking at the "Reference" page now, it's still not organized in the best possible way.
For instance, do the "Expectations - auto-generated" really constitute a reasonable category? I now realise it made more sense before as "value expectations", but that's still not perfect. Perhaps "Expectations - format" for pattern, length, date, and so on, "Expectations - values" for value and range, and something else for text missingness (which are potentially questionable given the existence of expect_base).
Additionally, the descriptions are inconsistent. Some have "checks" in the description, others don't, etc.
Originally posted by @kinto-b in #45 (review)
The text was updated successfully, but these errors were encountered: