Description Usage Arguments Value
View source: R/fold.R
Enable code-folding
1 2 3 4 5 6
generic(init = c("show", "hide"), query, style) bookdown(init = c("show", "hide"), query = "pre.sourceCode", style = "position: absolute; right: 8%; z-index: 200") distill(init = c("show", "hide"), query = "d-code", style = "")
init
character indictates to "show" or "hide" code blocks at initialization.
character
"show"
"hide"
query
character CSS-selector string for code blocks.
style
character CSS style for the button.
htmltools::tagList
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.