From 9d0f1eddcfcccba4fffce9471316bcd91213a23f Mon Sep 17 00:00:00 2001 From: Adriano Rutz Date: Thu, 6 Feb 2025 08:49:34 +0100 Subject: [PATCH] Reduce warnings --- R/run_app.R | 2 +- tests/testthat/test-shinytest2.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/run_app.R b/R/run_app.R index 707b440f..1468e1b1 100644 --- a/R/run_app.R +++ b/R/run_app.R @@ -25,7 +25,7 @@ run_app <- function(host = "127.0.0.1", } install() shiny::runApp( - appDir = system.file(package = "tima"), + appDir = shiny::shinyAppFile(system.file("app.R", package = "tima")), port = port, host = host, launch.browser = browser diff --git a/tests/testthat/test-shinytest2.R b/tests/testthat/test-shinytest2.R index 12d7ef04..51677279 100644 --- a/tests/testthat/test-shinytest2.R +++ b/tests/testthat/test-shinytest2.R @@ -7,7 +7,7 @@ test_that("{shinytest2} recording: app", { timeout = 100000, load_timeout = 100000, shiny_args = list( - appDir = system.file(package = "tima"), + app = shiny::shinyAppFile(system.file("app.R", package = "tima")), host = "127.0.0.1", port = 3838, launch.browser = TRUE