q_delay | R Documentation |
This function introduces a user specified random delay into a loop. Inspired by web scraping best practices.
q_delay(periods = c(1, 2))
periods |
Numeric vector with two values corresponding to the lower and upper bound of a uniform distribution from which the delay time is randomly sampled. |
for (i in 1:10) {
cat("Hello number", i, "\n")
q_delay(periods = c(1, 2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.