Skip to content

taxize::synonyms return error "The x argument of as_tibble() can't be missing as of tibble 3.0.0." #922

@gledits2

Description

@gledits2
Session Info
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] taxize_0.9.100   caribmacro_1.1.0 here_1.0.1      

loaded via a namespace (and not attached):
 [1] gtable_0.3.4       ggplot2_3.4.3      lattice_0.21-8     vctrs_0.6.3        tools_4.3.1        generics_0.1.3     curl_5.0.2         parallel_4.3.1    
 [9] tibble_3.2.1       proxy_0.4-27       fansi_1.0.4        pkgconfig_2.0.3    KernSmooth_2.23-21 data.table_1.14.8  uuid_1.1-1         lifecycle_1.0.3   
[17] conditionz_0.1.0   compiler_4.3.1     stringr_1.5.0      munsell_0.5.0      ritis_1.0.0        codetools_0.2-19   class_7.3-22       lazyeval_0.2.2    
[25] pillar_1.9.0       crayon_1.5.2       whisker_0.4.1      classInt_0.4-9     solrium_1.2.0      iterators_1.0.14   foreach_1.5.2      nlme_3.1-162      
[33] tidyselect_1.2.0   digest_0.6.33      stringi_1.7.12     sf_1.0-14          dplyr_1.1.3        rprojroot_2.0.3    grid_4.3.1         colorspace_2.1-0  
[41] cli_3.6.1          magrittr_2.0.3     bold_1.3.0         triebeard_0.4.1    crul_1.4.0         utf8_1.2.3         e1071_1.7-13       ape_5.7-1         
[49] scales_1.2.1       oai_0.4.0          httr_1.4.7         rgbif_3.7.7        zoo_1.8-12         rlang_1.1.1        urltools_1.7.3     Rcpp_1.0.11       
[57] glue_1.6.2         DBI_1.1.3          httpcode_0.3.0     xml2_1.3.5         rstudioapi_0.15.0  jsonlite_1.8.7     R6_2.5.1           plyr_1.8.8        
[65] units_0.8-3       

Hi,

I am trying to look up the known synonyms for a list of species. In the past, I have used taxize::synonyms with great success. However, now when I run the following code, I get an error about a tibble not being able to be made because a parameter is needed as of tibble 3.0.0.

Here is the code I am trying to run:

synonyms(sci_id = 'Ameiva atrigularis', db = 'itis')

And this is the output I get with the traceback

══ 1 queries ═══════════════

Retrieving data for taxon 'Ameiva atrigularis'

Error:
! The x argument of as_tibble() can't be missing as of tibble 3.0.0.
Run rlang::last_trace() to see where the error occurred.

rlang::last_trace()
<error/lifecycle_error_deprecated>
Error:
! The x argument of as_tibble() can't be missing as of tibble 3.0.0.


Backtrace:

  1. ├─taxize::synonyms(sci_id = corect_name$matched_name2, db = "itis")
  2. └─taxize:::synonyms.default(...)
  3. └─taxize:::process_syn_ids(sci_id, db, get_tsn, rows = rows, ...)
  4. └─eval(fxn)(input, ...)
    
  5.   └─ritis::terms(sci_com[i], what = searchtype, ...)
    
  6.     └─base::lapply(query, fun, wt = wt, raw = raw, ...)
    
  7.       └─ritis (local) FUN(X[[i]], ...)
    
  8.         └─ritis:::parse_raw(out)
    
  9.           ├─tibble::as_tibble()
    
  10.           └─tibble:::as_tibble.NULL()
    
  11.             └─lifecycle::deprecate_stop("3.0.0", "as_tibble(x = 'can\\'t be missing')")
    
  12.               └─lifecycle:::deprecate_stop0(msg)
    

Run rlang::last_trace(drop = FALSE) to see 1 hidden frame.

I tried to run it again after reinstalling taxize through remotes::install_github("ropensci/taxize") and it still returned the same error. The interesting this is that I ran this code in September without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions