Description Usage Arguments Details Note
Load HTML, text, or rendered Markdown from a file and turn into HTML.
1 2 3 4 5 6 7 8 9 | includeHTML(path)
includeText(path)
includeMarkdown(path)
includeCSS(path, ...)
includeScript(path, ...)
|
path |
The path of the file to be included. It is highly recommended to use a relative path (the base path being the Shiny application directory), not an absolute path. |
... |
Any additional attributes to be applied to the generated tag. |
These functions provide a convenient way to include an extensive amount of HTML, textual, Markdown, CSS, or JavaScript content, rather than using a large literal R string.
includeText
escapes its contents, but does no other processing.
This means that hard breaks and multiple spaces will be rendered as they
usually are in HTML: as a single space character. If you are looking for
preformatted text, wrap the call with pre
, or consider using
includeMarkdown
instead.
The includeMarkdown
function requires the markdown
package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.