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
| Option | Default | Meaning |
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_enabled | TRUE | Whether downloaded files are kept on disk. |
gtropic.cache_dir | tools::R_user_dir("gtropic", "cache") | Where cached files live. |
gtropic.confirm_threshold_gb | 1 | Download size, in gigabytes, above which you are asked to confirm. |
gtropic.timeout | 600 | Per-request timeout in seconds. |
gtropic.max_tries | 3 | Maximum 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.
