| createEZApp | R Documentation |
Creates a folder holding a ready-to-edit app laid out the standard way:
createEZApp(path, appName = "My App", overwrite = FALSE)
path |
Folder to create the app in. It is created if needed. |
appName |
Name shown in the app's navigation bar. |
overwrite |
|
app.R: the app, with numbered sections for loading packages, the UI and
the server, and comments explaining what goes where.
Functions/: put your helper .R files here. app.R loads them all
with sourceFunctions().
www/: put images such as logos here. Give just the file name to
UINav(logoFile = ...).
Necessary_Files/: put files the app needs at start, such as a data
template users can download.
Open app.R and run it with shiny::runApp("<path>") or the Run App button.
The path to the new app.R, invisibly.
appFolder <- file.path(tempdir(), "myFirstApp")
createEZApp(appFolder, appName = "My First App")
list.files(appFolder)
if (interactive()) {
shiny::runApp(appFolder)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.