delay_by: Ensures that a certain amount of time has elapsed before a...

Description Usage Arguments Value

View source: R/delay.r

Description

This is a function operator, so you specify the delay and an existing function and it returns a new function that is only callable once every delay seconds. Suggested in an exercise in "Advanced R"

Usage

1

Arguments

delay

the delay in seconds

f

the existing function

Value

the new function, which behaves exactly as the existing function except it calls Sys.sleep when necessary


jowalski/rtmapidoc documentation built on May 19, 2019, 9:42 p.m.