Learn R Programming

acdcquery (version 1.2.2)

update_ted: Update local TED database from GitHub release

Description

Checks whether the local TED SQLite database (ted.db) is up to date with the release on SLesche/truth-effect-database and optionally downloads the latest version.

Usage

update_ted(
  local_sqlite_path,
  tag = NULL,
  update = FALSE,
  token = Sys.getenv("GITHUB_PAT"),
  algo = "sha256"
)

Value

Invisibly returns TRUE if up to date, FALSE if outdated.

Arguments

local_sqlite_path

Path to the local ted.db file.

tag

Optional release tag. If NULL, uses latest release.

update

Logical; if TRUE, will download the latest database when the local copy is outdated (default: FALSE).

token

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

algo

Hash algorithm (default: "sha256").

Examples

Run this code
if (FALSE) {
update_ted("ted.db")
update_ted("ted.db", update = TRUE)
}

Run the code above in your browser using DataLab