Learn R Programming

webshot2

webshot2 is meant to be a replacement for webshot, except that instead of using PhantomJS, it uses headless Chrome via the Chromote package.

Installation

# CRAN
install.packages("webshot2")

# Development
remotes::install_github("rstudio/webshot2")

You also need to have the Chrome browser installed on your system. You can also use other browsers based on Chromium, such as Chromium itself, Edge, Vivaldi, Brave, or Opera.

Usage

library(webshot2)

# Single page
webshot("https://www.r-project.org")
# Multiple pages (in parallel!)
webshot(c("https://www.r-project.org", "https://www.rstudio.com"))

# Specific height and width
webshot("https://www.r-project.org", vwidth = 1600, vheight = 900, cliprect = "viewport")

Copy Link

Version

Install

install.packages('webshot2')

Monthly Downloads

22,167

Version

0.1.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Winston Chang

Last Published

August 11th, 2023

Functions in webshot2 (0.1.1)

webshot2-package

webshot2: Take Screenshots of Web Pages
appshot

Take a screenshot of a Shiny app
shrink

Shrink file size of a PNG
webshot

Take a screenshot of a URL
resize

Resize an image
rmdshot

Take a snapshot of an R Markdown document
reexports

Objects exported from other packages