screenshot | R Documentation |
The screenshot
function captures a screenshot of the current page within a web browser session and saves it to the specified path
.
screenshot(page_df, path)
page_df |
A data frame containing page information, including the |
path |
A character string representing the path where the screenshot should be saved. |
The updated page_df
data frame.
# Create a page_df data frame
page_df <- data.frame(page_id = "my_page")
# Capture a screenshot using the page_df and save it to the specified path
screenshot(page_df, "path/to/save/screenshot.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.