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).

display_document(file)

Arguments

file

The file (path) containing a document to display.

Value

html tags of the rendered doc

Examples


if (FALSE) {
ui <- shiny::fluidPage(
shiny::mainPanel(
display_document('path-to-your-file')
)
)
}