buy: Click the earliest available time

Description Usage Arguments Examples

View source: R/nom.R

Description

If no times are available, keep refreshing.

Usage

1
buy(n_tries = 100, timeout_after = 30 * 60, end_earlier = TRUE, sleep_time = 1)

Arguments

n_tries

Number of times to try refreshing before giving up.

timeout_after

Number of seconds to try refreshing before giving up.

end_earlier

If true, the loop will end after either n_tries is reached or timeout_after is reached. If false, both conditions must be met.

sleep_time

Average number of seconds to sleep in between refreshes. Exact sleep time is randomly chosen from a uniform distribution of sleep_time - sleep_time/2 to sleep_time + sleep_time/2.

Examples

1
2
3
4
## Not run: 
buy(sleep_time = 2)

## End(Not run)

aedobbyn/foodpls documentation built on Aug. 14, 2020, 2:07 p.m.