From 7df5b69228af736f2905b25796fa40e653323ad6 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Mon, 27 Jan 2025 17:12:44 -0500 Subject: [PATCH 1/2] feat: Add `ide_open_app()` --- R/test-in-ide.R | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/R/test-in-ide.R b/R/test-in-ide.R index f46342e386..358c8b7896 100644 --- a/R/test-in-ide.R +++ b/R/test-in-ide.R @@ -186,3 +186,25 @@ test_in_ide <- function( } ) } + +ide_open_app <- function(app_name) { + app_name <- resolve_app_name(app_name) + owd <- setwd(app_path(app_name)) + cli::cli_alert("Opening app {.field {app_name}}") + cli::cli_alert_info("App location: {.path {app_path(app_name)}}") + + app_files <- dir(pattern = "(app|ui).[Rr]") + server_files <- dir(pattern = "server.[Rr]") + test_files <- dir("tests/testthat", pattern = "test-", full.names = TRUE) + + files <- vapply( + c(app_files, server_files, test_files), + function(x) sprintf("{.path %s}", x), + character(1) + ) + + cli::cli_h3("Test app files") + cli::cli_ol(files) + + invisible(owd) +} From 96583a63a446f97a44d2c6acee6639bae3bb5a7f Mon Sep 17 00:00:00 2001 From: gadenbuie Date: Mon, 27 Jan 2025 22:16:55 +0000 Subject: [PATCH 2/2] `devtools::document()` (GitHub Actions) --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index de53a224bf..424a133195 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -10,7 +10,7 @@ Description: Core shiny team tools to facilitate testing of the shiny-verse. License: MIT + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Imports: jsonlite, progress,