download_database: Download a fixed-version curated database

View source: R/data-access-io-prepare.R

download_databaseR Documentation

Download a fixed-version curated database

Description

Downloads are explicit, versioned, and cached. Existing files are reused unless force = TRUE. A catalog entry may comprise several jointly versioned and verified artifacts. No analytical function calls this function.

Usage

download_database(
  id,
  version = NULL,
  cache_dir = NULL,
  force = FALSE,
  quiet = FALSE,
  accept_license = FALSE
)

Arguments

id

Catalog identifier from available_databases().

version

Database release specified by the catalog. By default, the release associated with id is used.

cache_dir

Cache root. Download functions require an explicit path; read-only loaders use the package user cache when it is NULL.

force

Replace existing cached artifacts.

quiet

Suppress download progress.

accept_license

Confirm that you reviewed the catalog entry's source terms. Required only when requires_acceptance is true.

Value

The normalized cached artifact path, or a named vector of paths for a grouped database, invisibly.

See Also

available_databases(), load_database()

Examples

cache <- file.path(tempdir(), "NEArender-cache")
## Not run: 
download_database("reactome_pathways", cache_dir = cache)

## End(Not run)

NEArender documentation built on Nov. 28, 2026, 5:10 p.m.