Closed bomeara closed 1 year ago
When using classification on many taxa, a rare Bad Request (HTTP 400) error would cause the code to stop.
Bad Request (HTTP 400)
The following code would fail at random points before this PR; now, it announces the error and keeps going.
tiny <- downstream('Demospongiae', db='ncbi', downto="species")
This addresses issue https://github.com/ropensci/taxize/issues/901.
Note that I only addressed the classification.uid code; it's possible that similar changes would be useful in classification.tsn, classification.eolid, etc. I have silent=FALSE in the try statement, but perhaps silent=TRUE would be better.
classification.uid
classification.tsn
classification.eolid
silent=FALSE
silent=TRUE
Thanks! I am on vacation, but I will take a look at this next week.
looks good, thanks!
Description
When using classification on many taxa, a rare
Bad Request (HTTP 400)
error would cause the code to stop.Example
The following code would fail at random points before this PR; now, it announces the error and keeps going.
This addresses issue https://github.com/ropensci/taxize/issues/901.
Note that I only addressed the
classification.uid
code; it's possible that similar changes would be useful inclassification.tsn
,classification.eolid
, etc. I havesilent=FALSE
in the try statement, but perhapssilent=TRUE
would be better.