Skip to content

Commit

Permalink
warn if phantomjs not installed (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobvjk authored Dec 13, 2024
1 parent fb99feb commit f443f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot_sankey.R
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit f443f73

Please sign in to comment.