powered by
A function to cache the phylogenies in treebase locally
cache_treebase( file = paste("treebase-", Sys.Date(), ".rda", sep = ""), pause1 = 3, pause2 = 3, attempts = 10, max_trees = Inf, only_metadata = FALSE, save = TRUE )
saves a cached file of treebase
filename for the cache, otherwise created with datestamp
number of seconds to hesitate between requests
number of seconds to hesitate between individual files
number of attempts to access a particular resource
maximum number of trees to return (default is Inf)
option to only return metadata about matching trees
logical indicating whether to save a file with the resuls.
it's a good idea to let this run overnight
if (FALSE) { treebase <- cache_treebase() }
Run the code above in your browser using DataLab