From f443f739ca63ad61136fcbd06d9307baea3c0d7c Mon Sep 17 00:00:00 2001 From: Jacob Kastl <60064070+jacobvjk@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:26:35 +0100 Subject: [PATCH] warn if phantomjs not installed (#360) --- R/plot_sankey.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/plot_sankey.R b/R/plot_sankey.R index c94174ae..ab1bf0f5 100644 --- a/R/plot_sankey.R +++ b/R/plot_sankey.R @@ -152,7 +152,7 @@ plot_sankey <- function(data, # you convert it as png webshot::webshot(temp_html, path.expand(file_name), vwidth = 1000, vheight = 900) } else { - cli::cli_abort( + cli::cli_warn( "In order to save the plot as PNG, you need to have {.pkg phantomjs} installed. Please run {.run webshot::install_phantomjs()} if you don't and try running the function again."