Generate code files required for shiny app containing multiple datasets. In particular, two R scripts will be generated, namely server.R and ui.R. Note that make_file has to be ran prior to generate the necessary data files for each of the dataset to be included. The prefix used in make_file have to be then supplied in this function.

make_code_multi(
  shiny.title,
  shiny.prefix,
  shiny.headers,
  shiny.dir,
  enableSubset = TRUE,
  defPtSiz = 1.25,
  theme = "flatly",
  tabs = c("civge", "civci", "gevge", "gem", "gec", "vio", "pro", "hea", "about"),
  font = "Lato",
  ganalytics = NA
)

Arguments

shiny.title

specify the overall title for shiny app

shiny.prefix

specify file prefix for each dataset. Must match the prefix used in make_file

shiny.headers

specify the tab header names for each dataset. Length must match that of shiny.prefix

shiny.dir

specify directory to create the shiny app in

enableSubset

specify whether to enable "Toggle to subset cells" functionality in the shiny app. Default is to enable this functionality

defPtSiz

specify default point size for single cells. For example, a smaller size can be used if you have many cells in your dataset. A single value can be specified to set the point size for all datasets. Otherwise, users have to specify one value for each dataset

theme

Bootsrap theme

tabs

Vector of tab names to include

font

Google font for plots. Defaults to "Lato". Requires package `showtext`.

ganalytics

Google analytics tracking ID (e.g. "UA-123456789-0")

Value

server.R and ui.R required for shiny app

Author

John F. Ouyang

Roy Francis