Attach commands for starting shiny application using runApp or golem commands to the reactor object.

set_runapp_args(
  obj,
  appDir = getwd(),
  test_port = httpuv::randomPort(),
  test_path = tempdir(),
  test_ip = getOption("shiny.host", "127.0.0.1"),
  test_trace = FALSE,
  verbose = TRUE
)

set_golem_args(
  obj,
  package_name = "",
  test_port = httpuv::randomPort(),
  test_path = tempdir(),
  test_ip = getOption("shiny.host", "127.0.0.1"),
  test_trace = FALSE,
  verbose = TRUE
)

Arguments

obj

reactor object

appDir

The application to run. Should be one of the following (Default: getwd()):

  • A directory containing server.R, plus, either ui.R or a www directory that contains the file index.html.

  • A directory containing app.R.

  • An .R file containing a Shiny application, ending with an expression that produces a Shiny app object.

test_port

integer, port to run the app on. Default: httpuv::randomPort()

test_path

character, Path the child process will have access to on the master, Default: tempdir()

test_ip

The IPv4 address that the application should listen on.

test_trace

logical, turn on the shiny.trace option in the background proccess?. Default: FALSE

verbose

logical, reactor willn notify the action taken. Default: TRUE

package_name

name of the golem package

Value

reactor object

See also

Other application: runApp_args()

Other application: runApp_args()

Examples

if (FALSE) { if(interactive()){ #EXAMPLE1 } }