Skip to content

shinytest2

0.5.1Package record

Testing for Shiny Applications

0packages dependsuggested by 110
340.5Kdownloads / year
24.4%test coverage
13/13flavors OK

Overview

About

Automated unit testing of Shiny applications through a headless 'Chromium' browser.

Changes in 0.5.1

New features

  • local_app_support(), with_app_support(), and load_app_support() documentation has been expanded to clarify when each function is needed. The use-package vignette now includes detailed examples and a decision tree to help users choose the right approach (#438).

Bug fixes and minor improvements

  • All vignette images now include alt text for improved accessibility (#435).
  • record_test() no longer prints a debug message when recording tests in a package directory (#437).
  • record_test(app=) now properly handles function apps. Previously, passing a function would error with "object of type 'closure' is not subsettable" when determining the test file name (#439).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.5 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • NOTE12 OK, 1 NOTE2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.5.1
READMEYes · 204 wordsVignettesYes · 9 · dynamicNEWSYes · 100% structured · mentions 0.5.1Citation fileNoWebsiteYes · pkgdown
Help pages
10 (2 internal)
Examples that run
20%1 run in a plain check (under a condition) · 4 never run
Exported functions with examples
50%
Documented parameters
98%
Return-value docs
10%
Help pages citing references
0%

Downloads

340.5K
CRAN downloads in the past year
Rank #480 · ~933/day · ~28.4K/mo
Daily download trend is not available in this view yet.
18.8K30 days
157.6K90 days
340.5K1 year
Compare downloads with other packages →
Also on4.6K r2u6 autocran

Repository

122Stars
23Forks
59Open issues
0Open PRs
12Releases
208Commits
21Commit identities
208 commits · Last activity 2026-07-15 · -0.8% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
97%
Median days to close, 50 most recently updated closed issues
88
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-14 · 1132026-10-17 · 122
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/rstudio/shinytest2 on 2026-10-18.

Continuous integration (1)
GitHub Actions
Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-07-15

pkgdown site last built 2026-07-15

CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (3)
lintrVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2025-12-23
    Seen in the repository: CLAUDE.md
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude
    Pull request it wrote: opened by a project member
    Commits: at least 2 crediting it in the message
  • GitHub Copilotfirst seen 2025-12-23
    Seen in the repository: .github/copilot-instructions.md
    Pull request: opened by its own account
    Commits: 3 by its own account
From outside contributors
  • Claude Code
    Pull requests: 2 from outside contributors, first on 2026-02-25
Models named in its commits
  • Claude Opus 4.62 commits · Apr 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
35 external dependencies (excludes base and recommended)

Installing shinytest2 adds 65 packages (36 with compiled code, 36 MB of source tarballs). Heaviest: bslib 5.6 MB, promises 3.1 MB, sass 2.9 MB.

Depends (1)
LinkingTo (1)
Enhances (0)
none

People & History

People (6)
Maintainer since 0.1.0 (2022), Author
Contributor
Original author to rstudio/shinytest
Contributor
Original author to rstudio/shinytest
Contributor
Original author to rstudio/shinytest
Copyright holder, ccp
Original author to rstudio/shinytest
Copyright holder, Funder · added in 0.3.0
Listed in earlier versions (1)
RStudio
no longer listed · 0.1.0 to 0.2.1
Releases (11)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.5.1Latest
    record
    2026-02-25 · current release · diff ↗
  • 0.5.0
    record
    2026-01-09 · diff ↗ ·
    added 3 exports
    load_app_support, local_app_support, with_app_support
  • 0.4.1
    record
    2025-04-12 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.4.0
    record
    2025-04-10 · diff ↗
  • 0.3.2
    record
    2024-04-28 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.1
    record
    2023-08-26 · diff ↗
  • 0.3.0
    record
    2023-08-15 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.1
    record
    2023-02-21 · diff ↗
  • 0.2.0
    record
    2022-09-26 · diff ↗ ·
    added 2 exports
    compare_screenshot_threshold, screenshot_max_difference
  • 0.1.1
    record
    2022-09-06 · diff ↗
  • 0.1.0
    record
    2022-04-27
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-04-27
Total releases
11 / 4 yrs
License
MIT + file LICENSE OSI
Download size
5.6 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("shinytest2")
Schloerke, B., Chang, W., Csárdi, G., Mango Solutions, , Posit Software, PBC, , & Wickham, H. (2026). shinytest2: Testing for Shiny Applications (Version 0.5.1) [Computer software]. https://doi.org/10.32614/CRAN.package.shinytest2

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for shinytest2 version 0.5.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy