RefreshIfOlderThan: RefreshIfOlderThan

View source: R/updating.R

RefreshIfOlderThanR Documentation

RefreshIfOlderThan

Description

An R object will be automatically recalculated if its output is older than the duration specified. Recalculation will only occur when someone looks at that R object, or something that is calculated using it.

Usage

RefreshIfOlderThan(x, units = "seconds")

Arguments

x

The period expressed in units units.

units

The time unit. One of "seconds", "minutes", "hours", "days", "weeks" or "months".

Details

If units = "months", then x must be an integer.

See Also

UpdateEvery, UpdateAt

Examples

RefreshIfOlderThan(2, "hours")
RefreshIfOlderThan(1, "weeks")

NumbersInternational/flipTime documentation built on Feb. 26, 2024, 6:44 a.m.