app <- ShinyDriver$new("../", seed = 42)
app$snapshotInit("bareboneApp")
app$snapshot()
app$setInputs(sidebarCollapsed = TRUE)
app$snapshot()
app$setInputs(sidebarCollapsed = FALSE)
app$snapshot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.