Description Usage Arguments Examples
Specialization of shiny::reactivePoll where checkFunc is reused as valueFunc. Useful making database table sources reactive without querying twice.
1 | reactivePoll2(intervalMillis, session, checkFunc)
|
intervalMillis |
Approximate number of milliseconds to wait between
calls to |
session |
The user session to associate this file reader with, or
|
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 |
1 | ## Not run: cars <- reactivePoll(1000, session, collect(tbl(db, sql('select * from cars'))) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.