-
Notifications
You must be signed in to change notification settings - Fork 3
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
Get latest resource #36
Conversation
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
Co-authored-by: James McMahon <[email protected]>
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.
Looks good to me, my only (final) suggestion is that maybe we should always / by default return the context when using this i.e. set include_context = TRUE
in the function definition.
Alternatively, include this context information in a message to the user. My concern is that, at the moment it returns a resource, but there's no way for the user to find out what has been returned unless they set include_context = TRUE
themselves
Happy, pending my final comment, I'll let @csillasch weigh in / approve.
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.
Looks good to me too!
That's a good point on returning context, I think setting include_context = T by default is probably what I'd lean towards rather than the message option (which is more likely to get overlooked).
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.
I made the change to the default for include_context
a separate pull request to review the get_latest_resource functions I accidently included within the issue10 pull request