mj_view: Viewer

Description Usage Arguments Examples

View source: R/view.R

Description

Preview email in the RStudio viewer

Usage

1

Arguments

mjml

An mjml object as returned by mj_ml.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
if(interactive()){
mj_ml(
  mj_body(
    mj_column(
      width = "20%",
      mj_text("First columns")
    ),
    mj_column(
      width = "80%",
      mj_text("The body")
    )
  )
) %>%
  mj_view()
}

JohnCoene/mjml documentation built on June 21, 2020, 11:42 a.m.