createEZApp: Start a new app from the EZRShiny template

View source: R/templates.R

createEZAppR Documentation

Start a new app from the EZRShiny template

Description

Creates a folder holding a ready-to-edit app laid out the standard way:

Usage

createEZApp(path, appName = "My App", overwrite = FALSE)

Arguments

path

Folder to create the app in. It is created if needed.

appName

Name shown in the app's navigation bar.

overwrite

TRUE to replace an existing app.R in path.

Details

  • 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.

Value

The path to the new app.R, invisibly.

Examples

appFolder <- file.path(tempdir(), "myFirstApp")
createEZApp(appFolder, appName = "My First App")
list.files(appFolder)

if (interactive()) {
  shiny::runApp(appFolder)
}

EZRShiny documentation built on Oct. 10, 2026, 5:08 p.m.