This function creates a Shiny app as an R Package.

CreateAppPackage(
  strDirectory = getwd(),
  strName = "newApp",
  strDisplayName = "",
  strAuthors = "",
  vModuleIDs = c("Home", "Simulation", "Feedback", "Options"),
  bDocumentPackage = TRUE
)

Arguments

strDirectory

The directory where the project folder is created. If this parameter is left blank then the current working directory will be used.

strName

The folder where the app saved.

strDisplayName

Display name for the app. strName is used by default

strAuthors

Author Names. Blank by default

vModuleIDs

list of module IDs to copy. The function looks in inst/_shared/modules for files named "mod_moduleID*" for each value of vModuleIDs provided; matching files are copied to the new app and initialized as shiny modules in app_ui and app_server. See PREP::add_module() for more detail.

bDocumentPackage

run devtools:document() on the new package once it is created? TRUE by default