As reported by @zachary-foster in ropensci/taxize#506, when "by_id" mode is used with entrez_link and some IDs are invalid the NCBI does not send any error message (just the information associated with the valid IDs). This means the alignment between the input IDs and output results will be broken in these cases
To solve this we should:
[x] raise an error when the number of IdLists in a return is lower than the number of input IDs
[x] create a test for these errors
[x] document this problem and a potential workaround in the function-level docs
As reported by @zachary-foster in ropensci/taxize#506, when "by_id" mode is used with entrez_link and some IDs are invalid the NCBI does not send any error message (just the information associated with the valid IDs). This means the alignment between the input IDs and output results will be broken in these cases
To solve this we should:
IdList
s in a return is lower than the number of input IDs