Skip to contents

Set up the codeminer database and create the required lookup and mapping metadata tables.

Usage

build_database(overwrite = FALSE)

Arguments

overwrite

Logical indicating whether to overwrite existing tables (default: FALSE)

Value

TRUE invisibly if successful.

Examples

# Build a temporary database
db_path <- tempfile(fileext = ".duckdb")
Sys.setenv(CODEMINER_DB_PATH = db_path)
build_database()
#> Creating new database at /tmp/RtmpRK6Py7/file1bd370d34a41.duckdb
file.exists(db_path)
#> [1] TRUE