ropensci / popler

The R package to browse and query the popler database
https://docs.ropensci.org/popler
MIT License
8 stars 7 forks source link

test failure #64

Open maelle opened 2 years ago

maelle commented 2 years ago

@AldoCompagnoni

via https://ropensci.r-universe.dev/ui#builds

==> devtools::test()

ℹ Loading popler
ℹ Testing popler
✓ | F W S  OK | Context
✓ |         4 | browse(): Informational messages                    
✓ |   1     3 | browse(): Select by criteria                        
────────────────────────────────────────────────────────────────────
Warning (test-browse.R:45:3): Select by criteria
`tbl_df()` was deprecated in dplyr 1.0.0.
Please use `tibble::as_tibble()` instead.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
Backtrace:
 1. popler:::select_by_criteria(x, substitute(kingdom == "Plantae")) test-browse.R:45:2
 2. dplyr::tbl_df(out) /home/maelle/Documents/ropensci/popler/R/browse.R:183:2
────────────────────────────────────────────────────────────────────
✓ |   3    13 | browse(): taxa_nest [4.0s]                          
────────────────────────────────────────────────────────────────────
Warning (test-browse.R:69:3): taxa_nest
The `.dots` argument of `group_by()` is deprecated as of dplyr 1.0.0.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
Backtrace:
 1. popler:::taxa_nest(summary_table, full_tbl = TRUE) test-browse.R:69:2
 5. dplyr:::group_by.data.frame(., .dots = setdiff(names(x), taxas))
 6. dplyr::group_by_prepare(.data, ..., .add = .add, caller_env = caller_env())

Warning (test-browse.R:102:3): taxa_nest
Unknown columns: `sppcode`, `species`, `kingdom`, `phylum`, `class`, `order`, `family`
Backtrace:
  1. popler:::taxa_nest(...) test-browse.R:102:2
 22. tidyr::one_of(taxas)

Warning (test-browse.R:110:3): taxa_nest
Unknown columns: `sppcode`, `kingdom`, `phylum`, `class`, `order`, `family`
Backtrace:
  1. popler:::taxa_nest(...) test-browse.R:110:2
 22. tidyr::one_of(taxas)
────────────────────────────────────────────────────────────────────
✓ |         7 | pplr_browse(): error functions                      
✓ |        13 | browse() function [14.9s]                           
x | 1       0 | cov_unpack [1.2s]                                   
────────────────────────────────────────────────────────────────────
Failure (test-cov_unpack.R:33:3): cov_unpack
all(unlist(classes)) is not TRUE

`actual`:   FALSE
`expected`: TRUE 
────────────────────────────────────────────────────────────────────
✓ |        12 | dictionary() function [9.0s]                        
✓ |         9 | dplyr verbs [4.7s]                                  
✓ |        12 | lter_map functions [48.6s]                          
✓ |         5 | popler_citation [10.9s]                             
⠏ |         0 | test report_dictionary                              [WARNING] This document format requires a nonempty <title> element.
  Defaulting to 'fileb03c6a53da63.knit' as the title.
  To specify a title, use 'title' in metadata or --metadata title="...".
⠋ |         1 | test report_dictionary                              [WARNING] This document format requires a nonempty <title> element.
  Defaulting to 'fileb03c6a53da63.knit' as the title.
  To specify a title, use 'title' in metadata or --metadata title="...".
⠙ |         2 | test report_dictionary                              [WARNING] This document format requires a nonempty <title> element.
  Defaulting to 'fileb03c39e025f1.knit' as the title.
  To specify a title, use 'title' in metadata or --metadata title="...".
⠹ |         3 | test report_dictionary                              [WARNING] This document format requires a nonempty <title> element.
  Defaulting to 'fileb03c1fea9c7d.knit' as the title.
  To specify a title, use 'title' in metadata or --metadata title="...".
✓ |         4 | test report_dictionary [24.0s]                      
✓ |        16 | pplr_site_rep [2.9s]                                

══ Results ═════════════════════════════════════════════════════════
Duration: 121.0 s

[ FAIL 1 | WARN 4 | SKIP 0 | PASS 98 ]

Happy to help if needed (but in 2022)!

maelle commented 2 years ago

:wave: @AldoCompagnoni! Friendly reminder :smile_cat: