| browser_print | R Documentation |
Print a web page via a headless browser such as Chromium or Google Chrome.
browser_print(
url,
output = ".pdf",
args = "default",
window_size = c(1280, 1024),
browser = env_option("xfun.browser", find_browser())
)
url |
Path or URL to the page to be printed. |
output |
An output filename. If only an extension is provided, the
filename will be inferred from |
args |
Command-line arguments to be passed to the headless browser. The
default arguments can be found in |
window_size |
The browser window size when printing to PNG/JPEG. |
browser |
Path to the web browser. By default, the browser is found via
|
The output path if the web page is successfully printed.
xfun::browser_print("https://www.r-project.org")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.