| run | R Documentation |
Takes over the terminal (alternate screen, raw keyboard input), runs the
event loop until the app calls exit(), and restores the terminal -
also when an error occurs or the user interrupts R.
run(x, ...)
x |
An App created by |
... |
Passed to |
When the app stops, its timers, widget timers, workers and animations are
cancelled. The same app can be run again, but timers and workers have to
be started again (for example from a "mount" handler).
termr apps need a real terminal: run them with Rscript (or an
interactive R session) in a terminal such as Windows Terminal,
iTerm2 or GNOME Terminal. RStudio's console is not a terminal.
The value passed to app$exit(), invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.