Fetches the current version of a COM(P)ADRE database from https://compadre-db.org, or load any version stored in a local .RData file.

cdb_fetch(cdb)

Arguments

cdb

Either "comadre" or "compadre" (case insensitive) to fetch the most recent database from https://compadre-db.org, or a path to an existing COMPADRE database (i.e. .RData file) stored on the local machine.

Value

A CompadreDB object

See also

Other data acquisition: cdb_metadata()

Author

Patrick M. Barks <patrick.barks@gmail.com>

Owen R. Jones <jones@biology.sdu.dk>

Examples

if (FALSE) { #Download direct from the COMPADRE website compadre <- cdb_fetch("compadre") #using file path to downloaded data compadre <- cdb_fetch("data/COMPADRE_v.5.0.1.RData") }