knitr::opts_chunk$set( eval=FALSE, collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
run_app
run_app(p1 = "param1", p2 = "param2")
in UI...
h1(get_golem_options("p1"))
...or in server
output$param <- renderPrint({ paste("param p2 = ",get_golem_options("p2")) })
Et voila.
run_app <- function( ...,name="default p3" ) { with_golem_options( app = shinyApp( ui = app_ui, server = app_server ), golem_opts = list(..., name=name) ) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.