Open wch opened 7 years ago
@maelle That does sound useful. It could be an option to webshot()
, instead of a new function.
Also, using webshot()
in an Rmarkdown document should just work. That's how it's done in the vignette.
Source: https://raw.githubusercontent.com/wch/webshot/master/vignettes/intro.Rmd
And the result: https://cran.r-project.org/web/packages/webshot/vignettes/intro.html
ooooh I had no idea sorry! 🙈 Thanks!
I was also wondering whether you'd consider returning a
magick
image object instead of saving the screenshot to disk.I tend to use this wrapper
This way I can render the screenshot directly in an RMarkdown document. This was inspired by the
rtweet::tweet_shot
function that actually useswebshot
.