Description Usage Arguments Value Examples
View source: R/displayDocument.R
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).
1 |
file |
The file (path) containing a document to display. |
A Shiny UI with an informed consent document.
1 2 3 4 5 6 7 8 | ## Not run:
ui <- shiny::fluidPage(
shiny::mainPanel(
display_document('path-to-your-file')
)
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.