View source: R/juicedown_example.R
juicedown_example | R Documentation |
List example files for the package. Show the path when the exact name is given.
juicedown_example(name = NULL, file = NULL)
name |
character. A single string for example name. |
file |
character. A single string for the main file. |
The package sample files are organized under samples directory like so:
samples/
|– from-html/
| -- sample.html
– include/
|– pic/
'– sample.Rmd
juicedown_example()
is equivalent to ls samples
,
juicedown_example("from-html")
is to ls samples/from-html
, and
juicedown_example("from-html", "sample.html")
shows the full path.
character. A list of example files or a path string to each example file.
juicedown_example()
juicedown_example("from-html")
juicedown_example("from-html", "sample.html")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.