Skip to contents

reprex_shot() will first take a reprex and then capture the HTML output into an on-disk image, optionally uploading the image to Imgur.

Usage

reprex_shot(filename = NULL, ..., open_file = TRUE, imgur = FALSE, venue = "r")

Arguments

filename

a filename, ending in .png

...

additional arguments passed to reprex::reprex()

open_file

A logical, should the file be opened once saved

imgur

A logical, should the image be uploaded to imgur also

venue

A character string indicating the venue (r, gh, rtf) - see reprex::reprex() for full options

Value

a screenshot of the reprex on disk