taxonlookup icon indicating copy to clipboard operation
taxonlookup copied to clipboard

“subscript out of bounds” on character vector

Open rossmounce opened this issue 8 years ago • 2 comments

I accidentally input a 'blank' name in a long list of names (an error which I think users are quite likely to make!).

str(A)
 chr [1:337444] "Aa" "Aa" "Aaronsohnia" "Narthecium" "Abarema" ...
lookup_table(A)
Error in FUN(X[[i]], ...) : subscript out of bounds

It would be nice if the lookup_table function could provide a clearer warning about this. Perhaps even print which items in the list are blank OR skip over blank items?

rossmounce avatar Feb 05 '16 13:02 rossmounce