reactivePoll2: Reactive Polling

Description Usage Arguments Examples

Description

Specialization of shiny::reactivePoll where checkFunc is reused as valueFunc. Useful making database table sources reactive without querying twice.

Usage

1
reactivePoll2(intervalMillis, session, checkFunc)

Arguments

intervalMillis

Approximate number of milliseconds to wait between calls to checkFunc. This can be either a numeric value, or a function that returns a numeric value.

session

The user session to associate this file reader with, or NULL if none. If non-null, the reader will automatically stop when the session ends.

checkFunc

A relatively cheap function whose values over time will be tested for equality; inequality indicates that the underlying value has changed and needs to be invalidated and re-read using valueFunc. See Details.

Examples

1
 ## Not run: cars <- reactivePoll(1000, session, collect(tbl(db, sql('select * from cars'))) )

misha-lisovich/laminar documentation built on May 23, 2019, 9:51 a.m.