# Set options here
options(golem.app.prod = FALSE) # TRUE = production mode, FALSE = development mode
# Comment this if you don't want the app to be served on a random port
port <- httpuv::randomPort()
usethis::ui_info("[NOTE] Using Random Port: {usethis::ui_value(port)}")
options(shiny.port = port, shiny.launch.browser = TRUE)
# Detach all loaded packages and clean your environment
golem::detach_all_attached()
# rm(list=ls(all.names = TRUE))
# Document and reload your package
golem::document_and_reload()
# Run the application
run_app()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.