You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vroom now reads in tables as spec_tbl_df objects. While dbWriteTable recognizes data.frame and tibble classes, but spec_tbl_df (which inherits from both tbl and data.frame not so much:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function 'dbWriteTable' for signature '"duckdb_connection", "character", "spec_tbl_df"'
(note that the example is agnostic to database). cc @jimhester in case this is better addressed on the vroom side. I'm not entirely up to speed on S4 method signatures, but I guess maybe it's no surprise they don't respect s3-style inheritance? Why does this work for tbl class? Is that handled manually?
The text was updated successfully, but these errors were encountered:
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
vroom
now reads in tables asspec_tbl_df
objects. While dbWriteTable recognizesdata.frame
and tibble classes, butspec_tbl_df
(which inherits from bothtbl
anddata.frame
not so much:(note that the example is agnostic to database). cc @jimhester in case this is better addressed on the vroom side. I'm not entirely up to speed on S4 method signatures, but I guess maybe it's no surprise they don't respect s3-style inheritance? Why does this work for
tbl
class? Is that handled manually?The text was updated successfully, but these errors were encountered: