gep_render_pdf: Render a page in a javascript context and rendero to PDF

Description Usage Arguments Value Examples

View source: R/gepetto.R

Description

Render a page in a javascript context and rendero to PDF

Usage

1
2
gep_render_pdf(gep, url, path = NULL, overwrite = TRUE, width = 1440,
  height = 5000)

Arguments

gep

a gepetto connection object

url

the URL to fetch and render

path

directory & filename to save the PDF to. If NULL will be saved to a tempfile and it location will be returned.

overwrite

if TRUE any existing path (file) will be overwritten

width, height

viewport width/height

Value

object

Examples

1
2
3
4
5
## Not run: 
gepetto(port=3000) %>%
  gep_render_pdf("https://r-project.org/")

## End(Not run)

hrbrmstr/decapitated documentation built on Aug. 2, 2019, 8:42 p.m.