heading | R Documentation |
This is just a convenience function to print a markdown or HTML heading at a given 'depth'.
heading(
...,
headingLevel = preregr::opts$get("defaultHeadingLevel"),
output = "markdown",
cat = TRUE
)
... |
The heading text: pasted together with no separator. |
headingLevel |
The level of the heading; the default can be set
with e.g. |
output |
Whether to output to HTML (" |
cat |
Whether to cat (print) the heading or just invisibly return it. |
The heading, invisibly.
heading("Hello ", "World", headingLevel=5);
### This produces: "\n\n##### Hello World\n\n"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.