From 6936a75b0c600a90dea7e249a6a3b370fcb90390 Mon Sep 17 00:00:00 2001 From: olivroy Date: Tue, 12 Mar 2024 15:02:18 -0400 Subject: [PATCH] fix regression --- R/render.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/render.R b/R/render.R index 81ebb5a00..040137789 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)