# Example R script which calls the TNRS in the context of adding names to a phylogeny
## # Example R script which calls the TNRS in the context of adding names to a phylogeny
## FROM Boyle et al. 2013 BMC Bioinformatics
## ## FROM Boyle et al. 2013 BMC Bioinformatics
library(ape)
## library(ape)
library(rjson)
## library(rjson)
library(RCurl)
## library(RCurl)
tnrs.api<-'http://tnrs.iplantc.org/tnrsm-svc'
## tnrs.api<-'http://tnrs.iplantc.org/tnrsm-svc'
#Tree topology from Ackerly, D. 2009. Conservatism and diversification of plant functional traits: Evolutionary rates versus phylogenetic signal. PNAS 106:19699--19706.
## #Tree topology from Ackerly, D. 2009. Conservatism and diversification of plant functional traits: Evolutionary rates versus phylogenetic signal. PNAS 106:19699--19706.