appshot {webshot} | R Documentation |
Take a screenshot of a Shiny app
appshot(app, file = "webshot.png", ..., port = getOption("shiny.port"), envvars = NULL)
app |
A Shiny app object, or a string naming an app directory. |
file |
A vector of names of output files. Should end with |
... |
Other arguments to pass on to |
port |
Port that Shiny will listen on. |
envvars |
A named character vector or named list of environment variables and values to set for the Shiny app's R process. These will be unset after the process exits. This can be used to pass configuration information to a Shiny app. |
if (interactive()) { appdir <- system.file("examples", "01_hello", package="shiny") appshot(appdir, "01_hello.png") }