Each page is composed of four templates: "head", "header", "content", and
"footer". Each of these templates is rendered using the data
, and
then assembled into an overall page using the "layout" template.
1 2 3 | render_page(pkg = ".", name, data, path = "", depth = NULL, quiet = FALSE)
data_template(pkg = ".", depth = 0L)
|
pkg |
Path to package to document. |
name |
Name of the template (e.g. "home", "vignette", "news") |
data |
Data for the template. This is automatically supplemented with three lists:
See the full contents by running |
path |
Location to create file; relative to destination directory.
If |
depth |
Depth of path relative to base directory. |
quiet |
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.