Learn R Programming

acdcquery (version 1.2.3)

download_ted: 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"))

Value

Invisibly returns the full path to the downloaded file.

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").

Examples

Run this code
if (FALSE) {
download_ted(tempdir())
}

Run the code above in your browser using DataLab