Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

render_html_fragment

Renders and returns an HTML fragment


Description

This is a wrapper around the rmarkdown::[render][rmarkdown::render] function. The principal difference is that the function is designed to return an HTML fragment (rather than writing to a file). This function is useful to populate the content of a modal window.

Usage

render_html_fragment(input, output_format = rmarkdown::html_fragment(), ...)

Arguments

input

character, path to input file

output_format

rmarkdown output format, provided so you can specify arguments

...

other arguments passed to rmarkdown::[render][rmarkdown::render]

Details

This function is being deprecated in favor of shiny::[includeMarkdown][shiny::includeMarkdown]

Value

htmltools::[tag][htmltools::tag]

Examples

## Not run: 
my_file <- system.file("markdown", "modal.md", package = "bsplus")
render_html_fragment(my_file)

## End(Not run)

bsplus

Adds Functionality to the R Markdown + Shiny Bootstrap Framework

v0.1.2
MIT + file LICENSE
Authors
Ian Lyttle [aut, cre, cph] (<https://orcid.org/0000-0001-9962-4849>), Schneider Electric [cph], Alex Shum [ctb], Emily Bosak [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.