View source: R/CreateAppPackage.R
This function creates a Shiny app as an R Package.
1 2 3 4 5 6 7 8 | CreateAppPackage(
strDirectory = getwd(),
strName = "newApp",
strDisplayName = "",
strAuthors = "",
vModuleIDs = c("Home", "Simulation", "Feedback", "Options"),
bDocumentPackage = TRUE
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.