ropensci / spocc

Species occurrence data toolkit for R
https://docs.ropensci.org/spocc
Other
116 stars 27 forks source link

occ "gbif" search is not working #236

Closed luismurao closed 3 years ago

luismurao commented 3 years ago

Dear community, I am trying to retrieve information from gbif using the spocc::occ function and it seems to be not working, here is the example:

library(spocc)
amby <- spocc::occ(query = "Ambystoma",from = "gbif")
Warning messages:
1: gbif: No records returned in GBIF for Ambystoma 
2: gbif: Column 46 of item 1 is length 4 inconsistent with column 1 which is length 300. Only length-1 columns are recycled. 
Session Info ```r R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363) Matrix products: default locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] spocc_1.1.0 loaded via a namespace (and not attached): [1] Rcpp_1.0.5 pillar_1.4.6 compiler_4.0.2 plyr_1.8.6 tools_4.0.2 uuid_0.1-4 lubridate_1.7.9 jsonlite_1.7.0 [9] lifecycle_0.2.0 tibble_3.0.3 gtable_0.3.0 lattice_0.20-41 rgbif_3.2.0 pkgconfig_2.0.3 rlang_0.4.7 cli_2.0.2 [17] rstudioapi_0.11 mapproj_1.2.7 curl_4.3 crul_1.0.0 rbison_1.0.0 ridigbio_0.3.5 xml2_1.3.2 stringr_1.4.0 [25] dplyr_1.0.2 httr_1.4.2 rgeos_0.5-3 generics_0.0.2 vctrs_0.3.4 maps_3.3.0 triebeard_0.3.0 rvertnet_0.8.0 [33] grid_4.0.2 rebird_1.1.0 tidyselect_1.1.0 httpcode_0.3.0 geoaxe_0.1.0 glue_1.4.1 data.table_1.13.0 R6_2.4.1 [41] fansi_0.4.1 oai_0.3.0 conditionz_0.1.0 sp_1.4-2 whisker_0.4 ggplot2_3.3.2 purrr_0.3.4 magrittr_1.5 [49] urltools_1.7.3 scales_1.1.1 ellipsis_0.3.1 assertthat_0.2.1 colorspace_1.4-1 stringi_1.4.6 lazyeval_0.2.2 munsell_0.5.0 [57] crayon_1.3.4 ```

Any thoughts? Thanks in advance Luis

sckott commented 3 years ago

hi, please upgrade your rgbif to the lastest on cran, fixed in that version

luismurao commented 3 years ago

hi, please upgrade your rgbif to the lastest on cran, fixed in that version

Thanks a lot @sckott it works now!