Skip to content

Conversation

@brownag
Copy link
Member

@brownag brownag commented Jan 6, 2026

For soilDB 2.9.x milestone, to be merged into #426 if testing succeeds.

Draft PR to remove dependency on httr and xml2 within SDA_query. httr is basically just syntactic sugar around curl, and xml2 is only needed for parsing ServiceExceptions when errors occur. jsonlite (or perhaps yyjsonr replacement) can be moved to imports. That way any installation of soilDB with imports only can run SDA_query without installing any additional packages.

  • review unescaping logic, test with more service exception types
  • move jsonlite to imports, or replace with yyjsonr

 - the "daily maintenance" response is not a standard JSON/XML service exception, just an HTML page
@brownag brownag marked this pull request as ready for review January 13, 2026 00:21
@brownag brownag changed the title refactor: replace httr and xml2 dependencies from SDA_query with base R refactor: replace httr and xml2 dependencies from SDA_query with base R/curl Jan 13, 2026
@brownag brownag merged commit 0656861 into ncss-tech:rdep41 Jan 14, 2026
@brownag brownag deleted the lowdep-sdaquery branch January 14, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant