-
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
Add get_records() to API and df() to Registry #54
Conversation
# Hacky way of avoiding unneeded requests until there is an easy way | ||
# to get the total number of records | ||
if (isTRUE(attr(.data_list, "finished"))) { | ||
return(.data_list) | ||
} |
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.
If there is a way to get the total number of records we can use a regular purrr::map
instead
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.
Nice!
Could you add a unit test for df()?
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.
LGTM!
Adds a
get_records()
method to theInstanceAPI
class which performs the API call to retrieve record summary information and adf()
method to theRegistry
class which makes the required API calls to get the requested number of records and formats the returned information as adata.frame()
. This tries to be semi-smart to limit the number of API calls.Fixes #43
Checks:
CHANGELOG