appshot

0th

Percentile

Take a screenshot of a Shiny app

Take a screenshot of a Shiny app

Usage
appshot(app, file = "webshot.png", ..., port = getOption("shiny.port"),
  envvars = NULL)
Arguments
app

A Shiny app object, or a string naming an app directory.

file

A vector of names of output files. Should end with .png, .pdf, or .jpeg. If several screenshots have to be taken and only one filename is provided, then the function appends the index number of the screenshot to the file name.

...

Other arguments to pass on to webshot.

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.

Aliases
  • appshot
Examples
if (interactive()) {
  appdir <- system.file("examples", "01_hello", package="shiny")
  appshot(appdir, "01_hello.png")
}

Documentation reproduced from package webshot, version 0.4.1, License: GPL-2

Community examples

Looks like there are no examples yet.