run_app | R Documentation |
'run_app()' starts the Shiny application contained in this package, with an option to load settings from a YAML file using additional option: projectSettingsFile = "pathToYamlFile".
run_app(
onStart = NULL,
options = list(),
enableBookmarking = NULL,
uiPattern = "/",
...
)
onStart |
A function that will be called before the app is actually run.
This is only needed for |
options |
Named options that should be passed to the |
enableBookmarking |
Can be one of |
uiPattern |
A regular expression that will be applied to each |
... |
Additional arguments to pass to 'golem_opts'. See '?golem::get_golem_options' for more details. |
This function initializes and runs the Shiny app developed with the golem framework. It optionally loads application-specific settings from a YAML file, which can be useful for project-specific configurations.
No return value, called for side effects. Launches the Shiny app.
if (interactive()) {
# Example: Run the application with default settings
run_app()
# Example: Run the application with a specific YAML configuration file
run_app(projectSettingsFile = "C:/test-project.yml")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.