chrome_dump_pdf: "Print" to PDF
Description
"Print" to PDF
Usage
chrome_dump_pdf(url, path = NULL, overwrite = TRUE,
chrome_bin = Sys.getenv("HEADLESS_CHROME"))
Arguments
path
path (with optional output filename) for the generated PDF. If NULL
then
and overwrite
is FALSE
, the fuction will will ensure a uniquely-named file is
placed in the current working directory by incrementing trailing numbers before
the end of it.
overwrite
overwrite existing file? Default: TRUE
chrome_bin
the path to Chrome (auto-set from HEADLESS_CHROME
environment variable)
Value
output fileame (invisibly)
Examples
Run this code# NOT RUN {
chrome_dump_pdf("https://www.r-project.org/")
# }
Run the code above in your browser using DataLab