Skip to contents

gtropic is configured entirely through options(). Setting these is how you point the package at a different Dataverse installation – for example moving from the demonstration server to a production repository – without needing a package update.

Value

These are options, not a function; nothing is returned. This topic exists for documentation only.

Details

OptionDefaultMeaning
gtropic.server"dataverse.harvard.edu"Dataverse host (HTTPS only).
gtropic.doi_historical"doi:10.7910/DVN/EAVWC3"DOI of the historical dataset.
gtropic.doi_current"doi:10.7910/DVN/FZBAKO"DOI of the current-year dataset. Used only as a fallback if automatic discovery fails.
gtropic.collection"gtropic"Dataverse collection (alias) searched during discovery.
gtropic.cache_enabledTRUEWhether downloaded files are kept on disk.
gtropic.cache_dirtools::R_user_dir("gtropic", "cache")Where cached files live.
gtropic.confirm_threshold_gb1Download size, in gigabytes, above which you are asked to confirm.
gtropic.timeout600Per-request timeout in seconds.
gtropic.max_tries3Maximum attempts per request before giving up.

A "cache" here means a folder of previously downloaded files on your own computer. It is enabled by default and uses a standard per-user location chosen by R. Use gtropic_cache_disable() or cache = FALSE on a retrieval to bypass it. See gtropic_cache_enable() to persist an enabled or disabled choice across R sessions.

Examples

# Point the package at a different installation:
if (FALSE) { # \dontrun{
options(
  gtropic.server = "dataverse.harvard.edu",
  gtropic.doi_historical = "doi:10.7910/DVN/EXAMPLE"
)
} # }

# Inspect the current settings:
getOption("gtropic.server")
#> [1] "dataverse.harvard.edu"