ropensci / taxa

taxonomic classes for R
https://docs.ropensci.org/taxa
Other
48 stars 12 forks source link

`taxmap` print bug when printing empty tibbles? #164

Closed zachary-foster closed 6 years ago

zachary-foster commented 6 years ago
> filter_taxa(ex_taxmap, 2, drop_obs = c(info = FALSE))
<Taxmap>
  1 taxa: c. Plantae
  1 edges: NA->c
  4 data sets:
    info:
      # A tibble: 6 x 4
        taxon_id name  n_legs dangerous
        <chr>    <chr>  <dbl> <lgl>    
      1 <NA>     tiger   4.00 T        
      2 <NA>     cat     4.00 F        
      3 <NA>     mole    4.00 F        
      # ... with 3 more rows
    phylopic_ids: a named vector of 'character' with 2 items
         c. b6400f39-345a-4711-ab4f-92fd4e22cb1a, c. 63604565-0406-460b-8cb8-1abe954b3f3a
    foods: a list of 2 items named by taxa:
       c, c
    abund:
      # A tibble: 0 x 5
      # ... with 5 variables: taxon_id <chr>, code <fct>, sample_id <fct>, count <dbl>, taxon_index <int>
NA
  1 functions:
    reaction