What determines idempotent retry behavior for R DBI writes?
Ensuring that a retry of an R DBI write after a failure does not insert duplicate rows requires distinguishing a failed statement from one that partially succeeded before connection loss. DBI::dbWriteTable(append = TRUE) provides no built-in idempotency key or deduplication, and backend-specific upsert syntax such as PostgreSQL ON CONFLICT or SQLite ON CONFL