taxonlookup
taxonlookup copied to clipboard
“subscript out of bounds” on character vector
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?