webshot2 is an R package for taking screenshots of web pages using headless Chrome through the Chromote package. It replaces the older webshot package which relied on the now-deprecated PhantomJS.
The package can capture single or multiple web pages in parallel and offers control over viewport dimensions and clipping regions. It works with Chrome and other Chromium-based browsers like Edge, Brave, or Opera. This makes it useful for generating reproducible screenshots of web applications, documentation, or Shiny apps.