adb_init | R Documentation |
Initiate a geospatial database or register a database that exists at the root path.
adb_init(
root,
version,
author,
licence,
ontology,
gazetteer = NULL,
top = NULL,
staged = TRUE
)
root |
|
version |
|
author |
|
licence |
|
ontology |
|
gazetteer |
|
top |
|
staged |
|
This is the first function that is run in a project, as it initiates the areal database by creating the default sub-directories and initial inventory tables. When a database has already been set up, this function is used to register that path in the options of the current R session.
No return value, called for the side effect of creating the directory structure of the new areal database and tables that contain the database metadata.
adb_init(root = paste0(tempdir(), "/newDB"),
version = "1.0.0", licence = "CC-BY-0.4",
author = list(cre = "Gordon Freeman", aut = "Alyx Vance", ctb = "The G-Man"),
gazetteer = paste0(tempdir(), "/newDB/territories.rds"),
top = "al1",
ontology = list(var = paste0(tempdir(), "/newDB/ontology.rds")))
getOption("adb_path"); getOption("gazetteer_path")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.