email_image: generates valid email cids

View source: R/connect_to_formr.R

email_imageR Documentation

generates valid email cids

Description

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

## Not run: 
library(knitr); library(formr)
opts_knit$set(upload.fun=formr::email_image)

## End(Not run)

rubenarslan/formr documentation built on Feb. 6, 2024, 1:18 a.m.