golem
golem copied to clipboard
How to run golem app as background job by invoking run_dev()?
I prefer to have my shiny apps run as a background job so that the console remains free. Is there a way to change the way run_dev() works in order to make that the default?
In addition, I think that this would have the added benefit of ensuring that the app runs in a clean environment, without having to clean the interactive environment, allowing the console environment to stay as is. I use golem::detach_all_attached() and rm(list=ls(all.names = TRUE)) in run_dev.R to ensure that the app runs in a clean environment each time. However, this can be slightly sub-optimal for development because if I want to do some testing/debugging in the console without having to specify the package with package::function(), it means that every time I run the app, I have to reload any libraries (usually library(tidyverse)) to avoid this during interactive coding.
Note - sorry, I didn't mean to label this as a bug or assign @ColinFay, and I"m not able to delete it to post as a feature request.