ropensci / taxize

A taxonomic toolbelt for R
https://docs.ropensci.org/taxize
Other
267 stars 60 forks source link

gni_parse() throws unexpected error for unknown names #870

Closed pieterprovoost closed 3 years ago

pieterprovoost commented 3 years ago

I'm getting the following error for names that cannot be parsed:

gni_parse("Nu aakhu")

Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE,  : 
  arguments imply differing number of rows: 1, 0

See http://gni.globalnames.org/parsers.json?names=Nu%20aakhu for the API response.

Session Info ```r R version 4.0.2 (2020-06-22) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS 10.16 Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] purrr_0.3.4 jsonlite_1.7.2 dplyr_1.0.4 stringr_1.4.0 RCurl_1.98-1.2 taxize_0.9.99 worrms_0.4.2 loaded via a namespace (and not attached): [1] Rcpp_1.0.6 pillar_1.5.0 compiler_4.0.2 plyr_1.8.6 bitops_1.0-6 [6] iterators_1.0.13 tools_4.0.2 uuid_0.1-4 digest_0.6.27 evaluate_0.14 [11] lifecycle_1.0.0 tibble_3.1.0 nlme_3.1-152 lattice_0.20-41 pkgconfig_2.0.3 [16] rlang_0.4.10 foreach_1.5.1 DBI_1.1.1 cli_2.3.1 rstudioapi_0.13 [21] crul_1.1.0 curl_4.3 yaml_2.2.1 parallel_4.0.2 xfun_0.21 [26] xml2_1.3.2 knitr_1.31 generics_0.1.0 vctrs_0.3.6 tidyselect_1.1.0 [31] triebeard_0.3.0 grid_4.0.2 data.table_1.14.0 reshape_0.8.8 glue_1.4.2 [36] httpcode_0.3.0 R6_2.5.0 fansi_0.4.2 conditionz_0.1.0 rmarkdown_2.7 [41] magrittr_2.0.1 codetools_0.2-18 urltools_1.7.3 ellipsis_0.3.1 htmltools_0.5.1.1 [46] assertthat_0.2.1 bold_1.1.0 ape_5.4-1 utf8_1.1.4 stringi_1.5.3 [51] crayon_1.4.1 zoo_1.8-8 ```
sckott commented 3 years ago

thanks, will fix

sckott commented 3 years ago

should be working now