The behaviour of certain nasapower functions can be controlled through
package-level options. These are set via base::options() and retrieved
internally using base::getOption(). All options have sensible defaults and
do not need to be set for normal use.
Options can be set for a single session:
options(nasapower.timeout = 60L)Or persistently across sessions by adding them to your .Rprofile:
# ~/.Rprofile
options(
nasapower.timeout = 60L,
nasapower.timeout.connect = 10L,
nasapower.max_tries = 3L
)Options
nasapower.timeoutMaximum time in seconds to wait for data to be transferred from the POWER API before the request is aborted. This controls the overall transfer timeout, not the time to establish a connection (see
nasapower.timeout.connect).nasapower.timeout.connectMaximum time in seconds to wait for a connection to the POWER API to be established before the request is aborted. A connection that takes longer than this is unlikely to succeed, so this is intentionally kept shorter than
nasapower.timeout.nasapower.max_triesMaximum number of times a failed request will be retried before an error is thrown. Retries are handled automatically by the underlying HTTP client and apply to transient failures (e.g., network timeouts, HTTP 429 or 503 responses).
