Take Screenshots of Web Pages
Overview
Takes screenshots of web pages, including Shiny applications and R Markdown documents. 'webshot2' uses headless Chrome or Chromium as the browser back-end.
- Updated the documentation for
webshot()to clarify thatexpandonly applies to the clipping rectangle determined byselector. (#68) webshot()now roundsvwidthandvheightto the nearest integer to match Chrome's expectations. If this behavior is somehow problematic, you can usevwidth = I(my_width)to avoid the conversion. (#70)webshot()now surfaces errors that occur when working with the lower-level screenshot API provided by Chrome via{chromote}. (#69)webshot()works harder to set the size of the virtual viewport whenvwidthandvheightare used. This change improves compatibility with recent versions of Chrome (>= v132). (#72)
From NEWS.md in the release
Install
Health
NOTEDESCRIPTION meta-informationr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Author field differs from that derived from Authors@R Author: ‘Winston Chang [aut, cre], Barret Schloerke [ctb] (<https://orcid.org/0000-0001-9986-114X>), Posit Software, PBC [cph, fnd] (03wc8by49)’ Authors@R: ‘Winston Chang [aut, cre], Barret Schloerke [ctb] (ORCID: <https://orcid.org/0000-0001-9986-114X>), Posit Software, PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)’
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 7 (2 internal)includes a package overview page
- Examples that run
- 100%5 run in a plain check (5 of them under a condition)
- Exported functions with examples
- 83%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 85%
- Median days to close, 50 most recently updated closed issues
- 5
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/rstudio/webshot2 on 2026-10-11.
GitHub Pages site last deployed 2025-04-24
pkgdown site last built 2025-04-24
Dependencies
Installing webshot2 adds 21 packages (12 with compiled code, 11 MB of source tarballs). Heaviest: promises 3.1 MB, Rcpp 1.8 MB, jsonlite 1.0 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.1.2Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.1.12023-08-12 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.1.02022-05-18
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-05-18
- Total releases
- 3 / 4 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-2 in 0.1.2
- Minimum R
- ≥ 3.2
- Download size
- 518 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("webshot2")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.