SnapViewer helps you browse and view testthat snapshot files in a local R package.
- Open snapshot folders and browse files in a tree view with
easy keyboard navigation
- View markdown and image snapshots
- Open folders for multiple packages and remember them across browsing sessions*
* In browsers without File System Access support, SnapViewer uses a fallback mode with limited persistence.
Finding the snapshot folder
If your R package is named package, then the snapshot folder (if it exists) is
package/tests/testthat/_snaps. You can equivalently select any of the following folders, and
SnapViewer will find the _snaps folder:
package
package/tests
package/tests/testthat
package/tests/testthat/_snaps
Selecting the root package folder is best because then SnapViewer knows the package name and suggests this
as a nickname for labeling the snapshot folder within the app. Otherwise you can type in your own nickname.