display_document: Display a document in Shiny.

Description Usage Arguments Value Examples

View source: R/displayDocument.R

Description

This function will take a Markdown document (.md) or Word document (.docx) and return the UI for a Shiny app to display it. This should be embedded within a UI code (see examples for details).

Usage

1

Arguments

file

The file (path) containing a document to display.

Value

A Shiny UI with an informed consent document.

Examples

1
2
3
4
5
6
7
8
## Not run: 
ui <- shiny::fluidPage(
shiny::mainPanel(
display_document('path-to-your-file')
)
)

## End(Not run)

jdtrat/taskdesignr documentation built on Feb. 4, 2021, 9:48 p.m.