-
Notifications
You must be signed in to change notification settings - Fork 5
docs+dep: another pass and remove fetch_df #81
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
Conversation
* alias epidata_call to create_epidata_call * link to epidata_call for endpoint returns * update docs * \dontrun the private endpoint examples * removed fetch_df
* fetch_* now in epidata_call docs * request_rul and with_base_url there too
* Correct some typos: e.g., "and instance" * Explain some unexplained formats: classic, json * Use `@rdname` rather than `@describeIn` for the `?epidata_call` docs to try to get `create_epidata_call`, the thing that users are least likely to use, to not stick out so much over all the things that users would be using. * Flesh out `?epidata_call` description further. * Move `@rdname` to be the first tag, following advice from https://mirai-solutions.ch/techguides/advanced-usage-and-consistent-documentation.html, plus make `@description` explicit so that it can be above the Description: section without "Invalid file name" errors from roxygen2 thinking the description is part of the `@rdname`. * Reorder some functions in the source file to make `?epidata_call` look better. * Fix some missing roxygen tags preventing `print` and `as.data.frame` methods from being registered. Fixes #43. Use `print` in the `?epidata_call` documentation. Don't print "the" `request_url` because we don't know if the default arguments to `request_url` are what the user actually has in mind. Use `cli` to format it, as it's already a transitive dependency, looks nice, and is fairly easy to use. * Add missing return description for `with_base_url`. * Add example of using magrittr pipe to create an `epidata_call` + fetch from it without intermediate assignments.
It no longer prints "the" request URL (ambiguous without knowing what the other args to `request_url` should be), so it's not really "for debugging". It's only for pointing users to the fetching & `request_url` functions.
Tried to do a simple tweak to the documentation here and it's bringing up check & implementation issues. We might just want to let the check() S3 notes slide for now, though I'm working to address them. (I wanted to use |
Nice changes! |
Also: I really like that you show the piping example in the docs. I didn't want to add magrittr as a dependency, but that's really the workflow we want to model to our users. Maybe magrittr is light and common enough that we can just include it in Suggests and use pipes in all our examples? |
Yes, I'd also prefer pipes in the examples. I did forget to |
If you do |
Sounds good, well if we already indirectly depend on it, then I'm happy to just import/export that pipe into the package! Made a new issue for request_url in #84. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow my review was stuck as pending. I think everything I noted + more has been addressed.
Closes #84, closes #85