cache_treebase: A function to cache the phylogenies in treebase locally

Description Usage Arguments Details Value Examples

View source: R/cache_treebase.R

Description

A function to cache the phylogenies in treebase locally

Usage

1
2
3
cache_treebase(file = paste("treebase-", Sys.Date(), ".rda", sep = ""),
  pause1 = 3, pause2 = 3, attempts = 10, max_trees = Inf,
  only_metadata = FALSE, save = TRUE)

Arguments

file

filename for the cache, otherwise created with datestamp

pause1

number of seconds to hesitate between requests

pause2

number of seconds to hesitate between individual files

attempts

number of attempts to access a particular resource

max_trees

maximum number of trees to return (default is Inf)

only_metadata

option to only return metadata about matching trees

save

logical indicating whether to save a file with the resuls.

Details

it's a good idea to let this run overnight

Value

saves a cached file of treebase

Examples

1
2
3
4
## Not run: 
 treebase <- cache_treebase()

## End(Not run)

ropensci/treebase documentation built on May 25, 2017, 2:40 p.m.