Loads BioticExplorer database and creates an index used by BioticExplorer to save processing time.
Usage
indexDatabase(
connection,
dbIndexFile = "~/IMR_biotic_BES_database/dbIndex.rda",
fileOnly = TRUE
)Arguments
- connection
Object defining the duckdb connection. Typically made within
compileDatabase.- dbIndexFile
Character string specifying the file path where the index of the database should be saved. Must include
.rdaat the end. The index is used by BioticExplorer.- fileOnly
Logical indicating whether the result should only be saved to a file and not returned. If FALSE, no file is made and the result is returned instead.