phantomjs does not appear to understand ~/ paths and does not expand it to the user's home directory (it makes a sub directory ./~ 😱) as one might expect (at least not on my system: macOS 15 on arm64 M3 / R 4.4.1), so it would be advantageous to expand ~/ paths before passing them on to webshot, e.g. webshot::webshot(temp_html, path.expand("~/Desktop/sankey.png"), vwidth = 1000, vheight = 900)
phantomjs does not appear to understand
~/
paths and does not expand it to the user's home directory (it makes a sub directory./~
😱) as one might expect (at least not on my system: macOS 15 on arm64 M3 / R 4.4.1), so it would be advantageous to expand~/
paths before passing them on to webshot, e.g.webshot::webshot(temp_html, path.expand("~/Desktop/sankey.png"), vwidth = 1000, vheight = 900)