Error from occ_data: "attr(,"condition") <simpleError in data.table::rbindlist(data, use.names = TRUE, fill = TRUE): Column 44 of item 1 is length 3 inconsistent with column 1 which is length 6. Only length-1 columns are recycled.>"

Tags: #<Tag:0x00007f5a8ac70d80>

Dear list users,

I am consistently having this error when trying to use occ_data for different animal species that worked fine, previously. This is the code:

  key= 5221377 
  r=try(occ_data(taxonKey=key, hasCoordinate=TRUE, 
  limit=10000,basisOfRecord="PRESERVED_SPECIMEN"),silent=T)

attr(,"condition")
<simpleError in data.table::rbindlist(data, use.names = TRUE, fill = TRUE): Column 44 of     item 1 is length 3 inconsistent with column 1 which is length 6. Only length-1 columns are recycled.>

Would anybody know how to solve this?
Many thanks in advance.

Its probably related to a problem in rgbif - which was already fixed. Try installing latest rgbif from CRAN CRAN - Package rgbif and then try your eg again (after restarting R)