traitecoevo / austraits.build

Source for AusTraits
Other
16 stars 2 forks source link

Create more explicit error message for "blank" datasets #732

Closed ehwenk closed 1 year ago

ehwenk commented 1 year ago

When there is a dataset that contains no information, usually due to a mistake in trait names being mapped in, you get this error:

Error in `dplyr::bind_rows()` at austraits.build/R/process.R:1391:4:
! Can't combine `..1$taxon_name` <character> and `..332$taxon_name` <logical>.

The empty dataset can be identified by dir("data")[332]

It would be good if you got an error message that had this error pattern, the error explicitly identified the problem for traits.build users outside of the AusTraits team.

yangsophieee commented 1 year ago

Moved issue to traits.build.