build_itis: Rebuild the ITIS snapshot

View source: R/build_itis.R

build_itisR Documentation

Rebuild the ITIS snapshot

Description

Rebuild the ITIS snapshot

Usage

build_itis(
  version = format(Sys.Date(), "%Y"),
  archive = NULL,
  dir = build_dir(),
  db = td_connect()
)

Arguments

version

snapshot version to write, e.g. "2026"

archive

path to the ITIS SQLite archive; downloaded if missing

dir

directory for build inputs and outputs

db

a duckdb connection

Details

ITIS distributes a SQLite database, which duckdb reads directly. n_usage carries the accepted/synonym distinction under two vocabularies, zoological (valid/invalid) and botanical (accepted/⁠not accepted⁠); both map onto accepted and synonym.

ITIS assigns a TSN to synonyms as well as accepted names, so every row here carries its own taxonID – which makes ITIS the reference for the taxadb rules checked by td_validate().

scientificNameAuthorship is taken from ITIS's own author table, keyed on the author id together with the kingdom, since the id is only unique within one.

Value

the paths written, invisibly

See Also

Other build: build_col(), build_fishbase(), build_gbif(), build_ncbi(), build_ott()

Examples

## Not run: 
build_itis("2026")

## End(Not run)

taxadb documentation built on Aug. 31, 2026, 5:07 p.m.