download_ted: Download TED database from GitHub release

View source: R/get_dbs.R

download_tedR Documentation

Download TED database from GitHub release

Description

Downloads the ted.db SQLite database from the latest (or specified) release on SLesche/truth-effect-database to a given directory.

Usage

download_ted(dest_dir, tag = NULL, token = Sys.getenv("GITHUB_PAT"))

Arguments

dest_dir

Directory where the database should be saved.

tag

Optional release tag. If NULL, uses latest release.

token

Optional GitHub token. Defaults to Sys.getenv("GITHUB_PAT").

Value

Invisibly returns the full path to the downloaded file.

Examples

## Not run: 
download_ted(tempdir())

## End(Not run)

acdcquery documentation built on Feb. 19, 2026, 5:07 p.m.