Skip to contents

Installs the ToxValDB DuckDB database. By default, downloads a pre-built database from the rolling db-latest GitHub prerelease. Falls back to building from source if the release asset is not available.

Usage

toxval_install(
  source = NULL,
  build = FALSE,
  tag = "db-latest",
  overwrite = FALSE
)

Arguments

source

Path to an existing toxval.duckdb file. If provided, the file is copied directly (skipping download and build).

build

Logical; if TRUE, skip the download attempt and build from source immediately. Default FALSE.

tag

GitHub release tag to download from (e.g. "v2.1.0"). Default "db-latest".

overwrite

Logical; overwrite an existing database? Default FALSE.

Value

Invisibly, the destination path.