The function invalidateLater() can be used to invalidate an observer or reactive expression in a given number of milliseconds. In this example, the output currentTime is updated every second, so it shows the current time on a second basis.

Try the shiny package in your browser

Any scripts or data that you put into this service are public.

shiny documentation built on May 18, 2018, 1:04 a.m.