From 7aeabb2a1a09af5dfc20cb5d9e95512ad72ff91e Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Fri, 15 Mar 2024 13:28:35 -0400 Subject: [PATCH] fix regression (#2416) --- R/render.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/render.R b/R/render.R index 81ebb5a000..040137789b 100644 --- a/R/render.R +++ b/R/render.R @@ -225,7 +225,8 @@ write_if_different <- function(pkg, contents, path, quiet = FALSE, check = TRUE) } if (!quiet) { - cli::cli_inform("Writing {dst_path(path)}") + href <- paste0("ide:run:pkgdown::preview_page('", path_rel(full_path, pkg$dst_path), "')") + cli::cli_inform("Writing {cli::style_hyperlink(dst_path(path), href)}") } write_lines(contents, path = full_path)