tar_notebook_index_rmd | R Documentation |
This function creates the index.Rmd
file for the notebook and sets YAML
metadata in the file. It also detects CSL and bibliography file dependencies.
tar_notebook_index_rmd(
title = "Notebook title",
author = "Author name",
bibliography = ymlthis::yml_blank(),
csl = ymlthis::yml_blank(),
index_rmd_body_lines = "",
...,
.list = rlang::list2(...)
)
title |
Title to use for the notebook. Defaults to |
author |
Author name for the notebook. Defaults to |
bibliography |
Name of a |
csl |
Name of a |
index_rmd_body_lines |
optional character vector to use for body text in
|
... |
Additional key-value pairs for setting fields in the yml metadata.
For example, |
.list |
Alternatively, these YAML fields may be set using a list. Any
key-value pairs in this list will override options set by arguments. For
example, an |
a list of targets:
notebook_bibliography_user
, notebook_csl_user
: file targets for
the bibliography and csl files in the dir_notebook
user folder.
notebook_bibliography_asset
, notebook_csl_asset
: file targets for
the bibliography and csl files in the dir_md
assets folder. These
command to build these targets to copy them.
notebook_index_rmd
: file target for the index.Rmd file.
If any of these file targets is not used, an empty target list()
is passed
along.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.