I'm using the
dbWriteTable(db, table_id, as.data.frame(table_df))
My best guess is you're using the
DBI package which does have a
dbWriteTable function (probably you are loading
DBI via another package; it has an impressive reverse dependencies list). Quickly glancing at its documentation,
DBI also has the
dbExistsTable function that does what you want.