Skip to content

fix(createSSURGO) connection names, file matching, and append/overwrite table logic - #485

Merged
brownag merged 3 commits into
masterfrom
fix/createssurgo-dbname1
Sep 8, 2026
Merged

brownag merged 3 commits into
masterfrom
fix/createssurgo-dbname1

Conversation

@AndrewBrown-USDA

@AndrewBrown-USDA AndrewBrown-USDA commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Refines createSSURGO() to improve database connection handling, output reporting, file matching, and append/overwrite argument logic for writing tables.

  • Now extracts the database name from any DBIConnection object using DBI::dbGetInfo(conn)$dbname
    • Output reporting is simplified to always use the resolved filename variable, rather than conditionally accessing conn@dbname, which may not exist depending on driver/connection type (note: it was removed in recent versions of {duckdb})
  • The logic for matching spatial files (f.shp.sc) is now more efficient by generating filename prefixes and matching them against the base names of files
  • The append and overwrite arguments for writing tables is clarified: append=TRUE takes precedence, overwrite=TRUE is handled explicitly; otherwise, default values are set.

@brownag
brownag merged commit b9f8d02 into master Sep 8, 2026
5 checks passed
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.

2 participants