set_app_args: Attach Commands for Shiny Application to Reactor

Description Usage Arguments Value See Also Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

yonicd/reactor documentation built on Jan. 20, 2021, 4:40 a.m.