Generate an RMarkdown file from an i2dashboard object.

assemble(dashboard, ...)

# S4 method for i2dashboard
assemble(
  dashboard,
  pages = names(dashboard@pages),
  file = dashboard@file,
  exclude = NULL,
  render = FALSE,
  ...
)

Arguments

dashboard

A i2dashboard.

...

Additional arguments passed on to rmarkdown::render.

pages

A string or vector with the names of pages, which should be assembled into the resulting Rmd file.

file

The filename of the resulting Rmd file (recommend that the suffix should be '.Rmd').

exclude

A string or vector with the names of pages, which should be excluded from dashboard assembly.

render

A logical indicating whether the assembled dashboard should immediately be rendered with rmarkdown::render or run with rmarkdown::run.

Value

Invisibly returns the dashboard.