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
I recently discovered this great package, thank you very much for your work!
I'm working with a package that outputs a list of dataframe from a database.
However, the list also contains some metadata members of various types along with the dataframes.
Using as_dm() on the list throws no warning regarding those members and their presence causes some bugs in functions such as dm_draw().
Note that x is considered as a table in the printed Metadata.
The error points to unnest.R#L47, and is caused by non-dataframes yielding a logical (and empty) column column in col_data.
I would expect either an early error in as_dm() forbidding the list to contain any non-dataframe, or an automatic removal of non-dataframes, maybe with a warning.
A hint to use purr::keep(my_list, is.data.frame) might be useful too.
I'd be happy to provide a PR if that can help you.
The text was updated successfully, but these errors were encountered:
Hi,
I recently discovered this great package, thank you very much for your work!
I'm working with a package that outputs a list of dataframe from a database.
However, the list also contains some metadata members of various types along with the dataframes.
Using
as_dm()
on the list throws no warning regarding those members and their presence causes some bugs in functions such asdm_draw()
.Here is a reprex:
Created on 2024-02-21 with reprex v2.0.2
Note that
x
is considered as a table in the printed Metadata.The error points to unnest.R#L47, and is caused by non-dataframes yielding a logical (and empty)
column
column incol_data
.I would expect either an early error in
as_dm()
forbidding the list to contain any non-dataframe, or an automatic removal of non-dataframes, maybe with a warning.A hint to use
purr::keep(my_list, is.data.frame)
might be useful too.I'd be happy to provide a PR if that can help you.
The text was updated successfully, but these errors were encountered: