Data is stored in PostgreSQL database

install_postgres(
  dataset,
  user = "postgres",
  password = "",
  host = "localhost",
  port = 5432,
  database = "postgres",
  database_name = "{db}",
  table_name = "{db}.{table}",
  bbox = list(),
  debug = FALSE,
  use_cache = TRUE,
  force = FALSE,
  hash_value = NULL
)

Arguments

dataset

the name of the dataset that you wish to install or path to a committed dataset zip file

user

username for database connection

password

password for database connection

host

hostname for connection

port

port number for connection

database

the database name default is postres

database_name

database schema name in which dataset will be installed

table_name

table name specified especially for datasets containing one file

bbox

Optional extent values used to fetch data from the spatial dataset

debug

Setting TRUE helps in debugging in case of errors

use_cache

Setting FALSE reinstalls scripts even if they are already installed

force

Setting TRUE doesn't prompt for confirmation while installing committed datasets when changes are discovered in environment

hash_value

the hash value of committed dataset when installing from provenance directory

Examples

# \donttest{ rdataretriever::install_postgres(dataset = "portal", user = "postgres", password = "abcdef")
#> Error: Python module retriever was not found. #> #> Detected Python configuration: #> #> python: /usr/bin/python3 #> libpython: /usr/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.so #> pythonhome: //usr://usr #> version: 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0] #> numpy: /usr/lib/python3/dist-packages/numpy #> numpy_version: 1.17.4 #> retriever: [NOT FOUND] #>
# }