installShinyParallel: Installs a multi-session Shiny app in a server

Description Usage Arguments Examples

View source: R/installShinyParallel.R

Description

Installs a Shiny app in a Shiny server, with the multi-session feature enabled. It will run in max.sessions, each with the Shiny app working. So, comunication between users is limited, if this needs to be done, then save and load data on hard disk (or use RStudio server pro).

Usage

1
2
3
4
5
6
7
installShinyParallel(
  appDir = getwd(),
  appName = basename(appDir),
  max.sessions = getOption("shinyParallel.max.sessions", 20L),
  users.per.session = getOption("shinyParallel.users.per.session", Inf),
  shinyServerPath = "/srv/shiny-server/"
)

Arguments

appDir

The application to run. Should be one of the following:

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

  • A directory containing app.R.

appName

Name of the app (path to access it on the server).

max.sessions

Number of sessions to use. Defaults to the shinyParallel.max.sessions option, is set, or 2L if not.

users.per.session

Maximum number of admited users per each session. Defaults to the shinyParallel.users.per.session option, is set, or Inf if not.

shinyServerPath

Path where shiny-server apps are installed by default.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# If we have a Shiny app at '~/myShinyApp', i.e., we can test our app by:
# shinyParallel::runApp('~/myShinyApp');

# then we can install the app by typing
shinyParallel::installShinyParallel("~/myShinyApp")

## End(Not run)

jcrodriguez1989/shinyParallel documentation built on June 25, 2021, 7:41 p.m.