email_image: generates valid email cids

Description Usage Arguments Examples

View source: R/connect_to_formr.R

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

1
email_image(x, ext = ".png")

Arguments

x

image ID

ext

extension, defaults to .png

Examples

1
2
3
4
5
## Not run: 
library(knitr); library(formr)
opts_knit$set(upload.fun=formr::email_image)

## End(Not run)

grebbel/formr_test documentation built on May 17, 2019, 8:34 a.m.