-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add screenshots folder AND a track on how to use it
- Loading branch information
1 parent
14af5b1
commit 955ac31
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Vignette screenshots | ||
|
||
This folder contains the screenshots of the app, generated in a pseudo-automated manner - one that does not involve too much of cropping, resizing, and customizing resolution. | ||
|
||
The way it works: | ||
|
||
``` | ||
app <- iSEE(sce, initial) # as in the vignette chunk | ||
``` | ||
|
||
Once you created the `app` object, call `appshot()` from the `webshot2` package | ||
|
||
``` | ||
webshot2::appshot(app, file = "screenshots/app_snapped.png", delay = 20) | ||
``` | ||
|
||
The use of the delay parameter is to ensure that the app has loaded all the panels correctly. | ||
|
||
Then, in the vignette, we simply use `knitr::include_graphics()` to embed the images as we normally would. |