-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Description
Currently, when I run apps in development using run_dev(), the app launches within the RStudio Viewer. I'd prefer it to open in a browser instead.
As a workaround, I've modified the run_app() function to include launch.browser = TRUE in the options argument:
run_app <- function(
onStart = NULL,
options = list(shiny.autoreload = TRUE,
launch.browser = TRUE), # <-- Launch in browser
enableBookmarking = NULL,
uiPattern = "/",
...
) {
with_golem_options(
app = shinyApp(
ui = app_ui,
server = app_server,
onStart = onStart,
options = options,
enableBookmarking = enableBookmarking,
uiPattern = uiPattern
),
golem_opts = list(...)
)
}
While this works, it feels a bit hacky since it requires modifying and committing changes to the codebase.
Is there a more "golem-native" way to launch the development app in the browser?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels