dev/run_dev.R

# 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()
jimbrig/lossdevtapp documentation built on Aug. 31, 2024, 8:38 a.m.