Creates a template _shinyelectron.yml file in the specified directory.
See also
wizard() for an interactive configuration generator;
show_config() to display the merged effective configuration.
Examples
# 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")
#> ✔ Created configuration file: /tmp/RtmpeTb9Jg/init-config-demo/_shinyelectron.yml
#> ℹ Edit this file to customize your Electron app settings
if (FALSE) { # \dontrun{
# Create a config for your own app
init_config("path/to/my/app")
} # }