View source: R/global_actions.R
| take_screenshot | R Documentation |
Take a screenshot of the current session state, saving this image to a file.
take_screenshot(file = NULL, view = FALSE, session = NULL)
file |
The file path to save the screenshot to. |
view |
Whether to open the interactively view the screenshot. If this is
|
session |
A |
file, if it is not NULL. Otherwise, the session object is returned, invisibly.
Other global actions:
back(),
current_url(),
execute_js_fn(),
get_page_source(),
open_url(),
reload(),
scroll_to()
session <- selenider_session()
open_url("https://www.google.com")
file_path <- withr::local_tempfile(fileext = ".png")
take_screenshot(file_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.