Learn R Programming

aemo (version 0.4.3)

aemo_throttle: Configure request throttling

Description

Controls the delay between successive NEMweb requests. Defaults to 1 second (half a request per second).

Usage

aemo_throttle(delay = 1)

Value

Invisibly returns the previous value.

Arguments

delay

Numeric. Minimum delay between requests in seconds. Internally this becomes httr2::req_throttle(rate = 1/delay).

See Also

Other configuration: aemo_cache_info(), aemo_clear_cache()

Examples

Run this code
old <- aemo_throttle(0.5)  # 2 requests per second
aemo_throttle(old)         # restore

Run the code above in your browser using DataLab