fps: Fire a signal at fixed fps.

Description Usage Arguments Value Examples

View source: R/time.R

Description

Fire a signal at fixed fps.

Usage

1
fps(rate)

Arguments

rate

Number of signals to fire per second

Value

A reactive giving the time in seconds between the current and previous signal being fired

Examples

1
2
3
4
5
6
7
shinyApp(
  ui = fluidPage(textOutput("delta")),
  server = function(input, output) {
    tick <- fps(10)
    output$delta <- renderText(tick())
  }
)

hadley/shinySignals documentation built on May 17, 2019, 12:47 p.m.