-
Notifications
You must be signed in to change notification settings - Fork 5
docs: Adds details to attend issues #295, #287, #221, #199 #324
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
base: dev
Are you sure you want to change the base?
Conversation
It clarifies that the API key needs to be manually updated and closes issue 295.
This closes issue 287 since the location does not need to be specified.
…Versioning section To reduce repetition, epidatr_shared_params contains shared parameters that are inherited by the functions’ documentation. Data Versioning is also inherited where necessary.
This change prevents issues with referencing .epidatr_shared_params when building the documentation site.
This closes essue #287.
| #' @param auth string. Your restricted access key (not the same as API key). | ||
| #' @param locations character. Vector of locations to fetch. | ||
| #' @param states character. Two letter state abbreviations. | ||
| #' @param regions character. Vector of regions to fetch. |
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.
praise: Thanks for taking these issues on!
question: Does R intelligently notice when a "shared parameter" isn't present in a function and leave it off? If yes, then consolidating all params up here sounds great. If not, then will this list arguments that don't apply to various endpoints? For instance, pub_covidcast doesn't have regions or states or locations, do those still show up? It might not be a big deal if there are extra arguments, just wondering what our options are for this sort of thing.
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.
answer: Yes, "@inheritParams only inherits docs for arguments that the function actually uses and that aren’t already documented". Also, there are a few cases where epiweeks or regions have a different description. In those cases, roxygen2 overrides the inherited parameter description with the provided description for that function.
Also, I reviewed the documentation to ensure it was working as intended, and it is. pub_fluview_clinical as an example below.

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.
issue: for fluview_clinical regions, I don't see the link to the full region list.
suggestion: make fluview and fluview_clinical regions description more specific. E.g., I think something like
#' @param regions character. Vector of location IDs to fetch. Can be
#' "nat" for national, "hhs1"--"hhs10" for HHS Regions, "cen1"--"cen9" for census divisions,
#' lowercase two-letter state or territory abbreviations for most states and territories,
#' "jfk" for New York City, or "ny_minus_jfk" for upstate New York.
#' Full list of locations is available <here>.w/ an actual link.
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.
fixed: I incorporated the detailed description you proposed. Regarding the link, I wanted to create a section within the Epidata API Documentation website, but while that is being arranged, I linked it to the regions' labels in the repository.
| #' @param locations character. Vector of locations to fetch. | ||
| #' @param states character. Two letter state abbreviations. | ||
| #' @param regions character. Vector of regions to fetch. | ||
| #' @param epiweeks [`timeset`]. Epiweeks to fetch. Supports |
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.
todo: fix content that got cut off here
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.
Fixed!
|
I added changes to address issues #208 and #288. Change explanations for reviewer
Magic GitHub syntax to mark associated Issue(s) as resolved when this is merged into the default branch |
|
Request: the Data Versioning section is good, but can we also add two more examples to the Getting Started vignette to address my suggestion in #199? Specifically of using the issues field and the lag field. |
Checklist
Please:
PR).
brookslogan, dshemetov, nmdefries, dsweber2.
DESCRIPTION. Always incrementthe patch version number (the third number), unless you are making a
release PR from dev to main, in which case increment the minor version
number (the second number).
(backwards-incompatible changes to the documented interface) are noted.
Collect the changes under the next release number (e.g. if you are on
1.7.2, then write your changes under the 1.8 heading).
Change explanations for reviewer
save_api_keyis inaccurate.pvt_meta_norostatlocationsparameter lacks valid inputs.as_of,issues, andlagMagic GitHub syntax to mark associated Issue(s) as resolved when this is merged into the default branch