Learn R Programming

decapitated (version 0.3.0)

gep_render_magick: Render a page in a javascript context and take a screenshot

Description

Render a page in a javascript context and take a screenshot

Usage

gep_render_magick(gep, url, width = 1440, height = 5000)

Arguments

gep

a gepetto connection object

url

the URL to fetch and render

width, height

viewport width/height

Value

magick image

Examples

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

Run the code above in your browser using DataLab