From 0fcb998247fb8f33d1b54b6b8c7841ed473300e9 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Mon, 16 Sep 2024 17:06:06 +0200 Subject: [PATCH] Correctly return TRUE is user trust extension author fixes #212 --- DESCRIPTION | 2 +- NEWS.md | 2 ++ R/utils-prompt.R | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 72a9eb5..54a0a99 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: quarto Title: R Interface to 'Quarto' Markdown Publishing System -Version: 1.4.4.9002 +Version: 1.4.4.9003 Authors@R: c( person("JJ", "Allaire", , "jj@posit.co", role = "aut", comment = c(ORCID = "0000-0003-0174-9868")), diff --git a/NEWS.md b/NEWS.md index abb5166..b7972a8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,8 @@ - `quarto_path()` now returns a normalized path with potential symlink resolved, for less confusion with `quarto_binary_sitrep()` (thanks, @jennybc). +- Fix an error with interactive prompt for extension approval (thanks, @wjschne, #212). + # quarto 1.4.4 - `quarto_preview()` now looks at `quarto preview` log to browse to the correct url when inside RStudio viewer (thanks, @aronatkins, #167). diff --git a/R/utils-prompt.R b/R/utils-prompt.R index fb0c00f..5d288db 100644 --- a/R/utils-prompt.R +++ b/R/utils-prompt.R @@ -18,6 +18,8 @@ check_extension_approval <- function(no_prompt = FALSE, what = "Something", see_ if (!prompt_value %in% "y") { cli::cli_inform("{what} not installed.") return(invisible(FALSE)) + } else { + return(invisible(TRUE)) } } }