Convenience wrapper around base::options() for mongolstats. Values are
validated before anything is set: for example mongolstats.lang must be
"en" or "mn", and mongolstats.timeout a positive number. Names that
are not mongolstats options are set with a warning, which catches typos.
Value
Invisibly, the previous values of the options changed, or a list of current values when called with no arguments.
Details
mongolstats.request_interval sets the minimum delay between NSO request
attempts, with a one-second floor. Processes on the same computer coordinate
through mongolstats.rate_limit_dir, which must name the same directory in
each process. This does not coordinate other applications or computers
sharing a public IP address. mongolstats.portal_base_url and
mongolstats.metadata_base_url select the portal and metadata services.
mongolstats.max_cells caps data-query cells; mongolstats.max_values
describes the metadata value-list limit, rather than a data-query limit.
Examples
# Get all current mongolstats options
nso_options()
# Set an option (save old value for restoration)
old <- nso_options(mongolstats.default_labels = "en")
# Restore original value
options(old)