Learn R Programming

opendotaR (version 0.1.4)

api_delay: API Delay function

Description

Function that controls the delay between API calls to opendota, user can specify the wait_time, but opendota asks you to limit yourself to 1 call per second

Usage

api_delay(start_time, wait_time = 1)

Arguments

start_time

Time of last API call

wait_time

Desired wait time between API calls

Value

There is no return, it simply sleeps the system for whatever time needed to reach wait_time

Examples

Run this code
# NOT RUN {
api_delay(start_time, wait_time)
# }

Run the code above in your browser using DataLab