You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @scelmendorf - Thanks for the report. Tropicos has a few problems:
They don't allow a period in the query, even if it's URL encoded. The query fails on their server with a period. So i'm fixing that to replace periods with the url encoded equivalent. However, see 2 below
Tropicos doesn't like sub-specific rank names. That is, Acroporium fuscoflavum var. baldwinii' isn't found at all, but Acroporium fuscoflavum baldwinii' is found.
I am putting in some warnings to catch when users include periods and when var/subsp/etc. are included and updating documentation
Hi,
I'm trying to pull info for a variety, that is in tropicos.
Here's an example:
Acroporium fuscoflavum var. baldwinii
If you follow the code below I think it illustrated the problem better than my verbal description could.
library (taxize)
thisWorksWell<-get_tpsid(sciname='Pinus contorta')
thisWorksWell
thisFailsEntirely<-get_tpsid(sciname='Acroporium fuscoflavum var. baldwinii')
thisFailsEntirely
thisAlmostWorks<-get_tpsid(sciname=gsub (' var.', '', 'Acroporium fuscoflavum var. baldwinii'))
thisAlmostWorks
why can't I get all of this?
change API key before runningexample
XMLq<-'http://services.tropicos.org/Name/Search?name=Acroporium+fuscoflavum+baldwinii&type=wildcard&apikey=MyAPIKeyThatImNotPostingOnGit&format=xml'
dataQ<-xmlParse(XMLq)
xmlData <- xmlToList(dataQ)
dataQ<-as.data.frame(t(data.frame(as.list(xmlData))))
dataQ$V1['Name.ScientificName']
The text was updated successfully, but these errors were encountered: