setupHTML | R Documentation |
Set up Javascript and CSS elements for each chapter, primarily for the custom collapsible class.
setupHTML()
The custom collapsible class allows us to hide details until requested by the user. This improves readability by reducing the clutter in the compiled chapter.
Prints HTML to standard output set up JS and CSS elements.
Aaron Lun
chapterPreamble
, which calls this function.
extractCached
and prettySessionInfo
, which use the custom collapsible class.
setupHTML()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.