View source: R/add_subprotocols.R
add_subprotocols | R Documentation |
The function should be called interactively (in the console)
after the dependencies section in the YAML
header of the index.Rmd
file
of the main protocol has been filled in with the aid of the
protocolhelper::add_dependencies()
function.
For reproducibility, it is good practice to save the call in a
separate R script.
For each sub-protocol a single markdown file and associated media and
data files will be written.
Each sub-protocol will be written to a subfolder of the main
protocol.
The subfolder name is the same as the version number of the
sub-protocol.
add_subprotocols(code_mainprotocol, fetch_remote = TRUE)
code_mainprotocol |
Character string giving the protocol code for the main protocol |
fetch_remote |
Whether or not to fetch the remote. Default TRUE. |
Other creation:
add_dependencies()
,
add_one_subprotocol()
,
create_protocol()
,
insert_protocolsection()
,
update_protocol()
,
update_version_number()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.