The dataframe that’s returned doesn’t include a genusKey column, so you get the “Unknown…” error when trying to view that non-existent column. You do get a maybe-helpful matchType column – e.g., before trying to pull a genusKey, you might want to check matchType’s value:
test_pinus <- name_backbone("Pinus")
if (test_pinus$matchType != "NONE") {...}
That said, I’m not sure why “Pinus” wouldn’t return a similar result to your “Acer” search, but if you need to avoid that ‘no match’ situation in your script (where the author isn’t known or isn’t part of the input), checking the returned dataframe’s matchType, &/or specifying rank or genus options along with name might help – e.g.:
Have a look at this article: (relevant section pasted below)
Too many choices problem
When two or more names exist in the GBIF Backbone Taxonomy that have the same name but different authorship (homotypic synonyms), supplying just the binomial name will result in matchType : "HIGHERRANK".
For example, the binomial name “Glocianus punctiger” has two entries in the backbone taxonomy. Using the verbose=TRUE will return both names.
Thanks @jwaller ! Seems there is a mollusk in a now-defunct Pinus genus I was very unaware of. In the end I just downloaded a larger subset of the data for the location I was interested (it was very small) and then filtered within R by genus, but was curious what was happening on the gbif side of things with the name_backbones.