From 8efd6f0c0bc9f6699d6fb61159036037be39c104 Mon Sep 17 00:00:00 2001 From: Arnfinn Hykkerud Steindal Date: Mon, 2 Dec 2024 14:42:13 +0100 Subject: [PATCH] =?UTF-8?q?Mulig=20=C3=A5=20snurre=20opp=20app=20i=20brows?= =?UTF-8?q?er,=20hvis=20=C3=B8nskelig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- R/run_app.R | 4 ++-- dev/utvikling.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/run_app.R b/R/run_app.R index 515ee2c..6d14875 100644 --- a/R/run_app.R +++ b/R/run_app.R @@ -3,8 +3,8 @@ #' @return An object representing the rapadm app #' @export -run_app <- function() { +run_app <- function(browser = FALSE) { rapbase::loggerSetup() - shiny::shinyApp(ui = app_ui, server = app_server) + shiny::shinyApp(ui = app_ui, server = app_server, , options = list(launch.browser = browser)) } diff --git a/dev/utvikling.R b/dev/utvikling.R index 374eaa0..6067742 100644 --- a/dev/utvikling.R +++ b/dev/utvikling.R @@ -6,4 +6,4 @@ source("dev/env.R") Sys.setenv(MYSQL_HOST="localhost") # for mobilt kontor -rapadm::run_app() +rapadm::run_app(browser = TRUE)