| init_config | R Documentation |
Creates a template _shinyelectron.yml file in the specified directory.
init_config(appdir, app_name = NULL, overwrite = FALSE, verbose = TRUE)
appdir |
Character path to app directory |
app_name |
Character application name. If NULL, derived from directory name. |
overwrite |
Logical whether to overwrite existing config. Default FALSE. |
verbose |
Logical whether to show progress. Default TRUE. |
Invisibly returns the path to the created config file.
wizard() for an interactive configuration generator;
show_config() to display the merged effective configuration.
# Create a config for a temporary app
app <- file.path(tempdir(), "init-config-demo")
dir.create(app, showWarnings = FALSE)
writeLines("library(shiny)", file.path(app, "app.R"))
init_config(app, app_name = "My App")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.