dev/run_dev.R

# Sass code compilation
sass::sass(input = sass::sass_file("inst/app/www/custom.sass"), output = "inst/app/www/custom.css", cache = NULL)

# Set options here
options(golem.app.prod = FALSE) # TRUE = production mode, FALSE = development mode
logger::log_threshold(logger::TRACE)
logger::log_layout(logger::layout_glue_colors)

# Comment this if you don't want the app to be served on a random port
options(shiny.port = httpuv::randomPort())
options(shiny.launch.browser = .rs.invokeShinyWindowExternal)

# 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()
rappster/shimo.eda documentation built on Aug. 29, 2022, 11:04 a.m.