Skip to contents

Reads the upstream release recorded in the installed database's _metadata table. Works offline. The value identifies the upstream source release, not the GitHub release tag the file was downloaded from:

Usage

db_installed_version(db = c("ecotox", "toxval", "dsstox"), path = NULL)

Arguments

db

Which database: "ecotox", "toxval", or "dsstox".

path

Path to the .duckdb file. Defaults to eco_path(), toxval_path(), or dss_path().

Value

A string, or NA_character_ when the database is missing or has no recorded version.

Details

  • "ecotox": the EPA ECOTOX ASCII archive name, e.g. "ecotox_ascii_09_15_2026.zip".

  • "toxval": the ToxValDB version, e.g. "v97_0".

  • "dsstox": the Clowder release date and file id, joined by "|".

Examples

if (FALSE) { # \dontrun{
db_installed_version("ecotox")
} # }