display_document: Display a document in Shiny.

View source: R/mod_additional_info.R

display_documentR Documentation

Display a document in Shiny.

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

display_document(file)

Arguments

file

The file (path) containing a document to display.

Value

html tags of the rendered doc

Examples


## Not run: 
ui <- shiny::fluidPage(
shiny::mainPanel(
display_document('path-to-your-file')
)
)

## End(Not run)

ergonyc/omicser documentation built on June 15, 2022, 3:02 p.m.