dm icon indicating copy to clipboard operation
dm copied to clipboard

Provide better error when `list` is provided to `dm()`

Open IndrajeetPatil opened this issue 2 years ago • 0 comments

The current error message is a bit cryptic since users can't know what is def$data:

library(dm)
library(nycflights13)

dm(list(weather, airports))
#> Error in `abort_dm_invalid()`:
#> ! This `dm` is invalid, reason: Not all entries in `def$data` are of class `data.frame` or `tbl_dbi`. Check `dm_get_tables()`.

Created on 2022-07-12 by the reprex package (v2.0.1.9000)

IndrajeetPatil avatar Jul 12 '22 07:07 IndrajeetPatil