Learn R Programming

decapitated (version 0.3.0)

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

Description

Render a page in a javascript context and rendero to PDF

Usage

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

Run this code
# NOT RUN {
gepetto(port=3000) %>%
  gep_render_pdf("https://r-project.org/")
# }

Run the code above in your browser using DataLab