Skip to contents

can be used as an argument to knitr::opts_knit. If you attach the images properly, you can then send knit emails including plots. See the formr OpenCPU module on Github for a sample implementation.

Usage

email_image(x, ext = ".png")

Arguments

x

image ID

ext

extension, defaults to .png

Examples

if (FALSE) { # \dontrun{
library(knitr); library(formr)
opts_knit$set(upload.fun=formr::email_image)
} # }