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
Given a remote database table, flights_db, tbl_grade() errors because the expected object is not a data.frame.
flights_db<- tbl(con, "flights")
tblcheck::tbl_grade(flights_db, flights_db)
#> An error occurred in the grading code: Assertion on 'expected' failed: Must be of type 'data.frame', not 'tbl_SQLiteConnection/tbl_dbi/tbl_sql/tbl_lazy/tbl'.#> <gradethis_graded: [Neutral]#> Uh-oh! We can't provide feedback at this time. Don't worry, it's not#> your fault! There's an issue behind-the-scenes with this exercise.#> >
For now authors can collect(.result) and collect(.solution), but maybe tbl_grade() could handle this automatically. Alternatively, we could think about rendering the lazy tbl to SQL or doing something else to avoid having to collect the complete data...
Maybe tblcheck should include some special handling for remote database tables. Here's a smaller example based on the Introduction to dbplyr • dbplyr:
Given a remote database table,
flights_db
,tbl_grade()
errors because the expected object is not adata.frame
.For now authors can
collect(.result)
andcollect(.solution)
, but maybetbl_grade()
could handle this automatically. Alternatively, we could think about rendering the lazy tbl to SQL or doing something else to avoid having to collect the complete data...The text was updated successfully, but these errors were encountered: