Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #38 from RMI-PACTA/expand-paths
Browse files Browse the repository at this point in the history
expand `~/` paths for safety
  • Loading branch information
cjyetman authored Aug 19, 2024
2 parents 7182557 + 6fba9d1 commit dd14a14
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,
if (webshot::is_phantomjs_installed()) {
file_name <- file.path(save_png_to, png_name)
# you convert it as png
webshot::webshot(temp_html, file_name, vwidth = 1000, vheight = 900)
webshot::webshot(temp_html, path.expand(file_name), vwidth = 1000, vheight = 900)
} else {
rlang::abort(
glue::glue(
Expand Down

0 comments on commit dd14a14

Please sign in to comment.