| td_build | R Documentation |
Runs a provider's preprocessing end to end: fetch the provider's own distribution, normalize it to the taxadb Darwin Core schema, and write the Parquet snapshot.
td_build(
provider = "itis",
version = format(Sys.Date(), "%Y"),
dir = build_dir(),
validate = TRUE,
db = td_connect(),
...
)
provider |
one or more providers to build. See |
version |
the snapshot version to write, defaults to the year. |
dir |
directory for build inputs and outputs, see |
validate |
should each table be checked with |
db |
a duckdb connection |
... |
passed to the individual provider builder, e.g. |
Snapshots are published for the providers so that most users never need to run this. It is here so that a user who needs a fresher snapshot than the published one, or who wants to check how a table was derived, can rebuild it themselves rather than asking someone to.
Builds are done entirely in duckdb, out of core, so they are bounded by
disk rather than memory. The archives are large: COL and GBIF are around
500MB and 1GB compressed respectively, and are cached in dir between
builds.
a data.frame of the validation results, invisibly if validate
is FALSE the paths written.
## Not run:
## rebuild one provider
td_build("itis")
## rebuild everything that can be built without credentials
td_build(taxadb_providers())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.