update_datelife_cache {datelife} | R Documentation |
Create an updated OpenTree chronograms database object
Description
The function calls get_opentree_chronograms()
to update the OpenTree
chronograms database cached in datelife. It has the option to write the updated
object as an .Rdata file, that will be independent of the opentree_chronograms
data object that you can load with data("opentree_chronograms", package = "datelife")
.
Usage
update_datelife_cache(
write = TRUE,
updated_name = "opentree_chronograms_updated",
file_path = file.path(tempdir()),
...
)
Arguments
write |
Defaults to |
updated_name |
Used if |
file_path |
Used if |
... |
Arguments passed on to
|
Value
A list of 4 elements:
- authors
A list of lists of author names of the original studies that published chronograms currently stored in the Open Tree of Life database.
- curators
A list of lists of curator names that uploaded chronograms to the Open Tree of Life database.
- studies
A list of study identifiers from original studies that published chronograms currently stored in the Open Tree of Life database.
- trees
A
multiPhylo
object storing the chronograms from Open Tree of Life database.- update
A character vector indicating the time when the database object was last updated.
- version
A character vector indicating the datelife package version when the object was last updated.