Refine PubChem search parameter passing to align with generic_request patterns#74
Draft
Copilot wants to merge 5 commits intointegrationfrom
Draft
Refine PubChem search parameter passing to align with generic_request patterns#74Copilot wants to merge 5 commits intointegrationfrom
Copilot wants to merge 5 commits intointegrationfrom
Conversation
Co-authored-by: seanthimons <141747936+seanthimons@users.noreply.github.com>
Co-authored-by: seanthimons <141747936+seanthimons@users.noreply.github.com>
…nt rate limit Co-authored-by: seanthimons <141747936+seanthimons@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add PubChem search functionality through API
Add PubChem PUG REST API search functions
Feb 2, 2026
Copilot stopped work on behalf of
seanthimons due to an error
February 2, 2026 19:49
Copilot stopped work on behalf of
seanthimons due to an error
February 2, 2026 22:13
…sely Co-authored-by: seanthimons <141747936+seanthimons@users.noreply.github.com>
Copilot
AI
changed the title
Add PubChem PUG REST API search functions
Refine PubChem search parameter passing to align with generic_request patterns
Feb 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PubChem search functions were passing query parameters through an
optionslist wrapper instead of directly via the ellipsis, creating unnecessary nesting.Changes
generic_request(..., options = options)todo.call(generic_request, c(list(...), query_params))patternquery_paramslist, merged directly into function callcc_searchand aligns with howgeneric_requestprocesses ellipsis arguments (lines 120-127)Implementation
The functions still use
generic_request()withbatch_limit = 0(static endpoint pattern) and leverage httr2 through the abstraction layer as required.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.