R/add_subprotocols.R
add_one_subprotocol.Rd
The function renders the sub-protocol to
bookdown::markdown_document2()
and
saves the resulting md
file (and any associated media and data files) in a
subfolder of the directory of the project-specific protocol.
This function should normally not be called directly.
Use add_subprotocols()
instead.
add_one_subprotocol(
code_subprotocol,
version_number,
params2 = NULL,
code_mainprotocol,
fetch_remote = TRUE
)
Character string giving the protocol code from
which a sub-protocol will be made (usually a sfp
-type protocol)
Character string with format YYYY.NN
A list of parameter key-value pairs.
Character string giving the protocol code for the main protocol
Whether or not to fetch the remote. Default TRUE.
Other creation:
add_dependencies()
,
add_subprotocols()
,
create_protocol()
,
insert_protocolsection()
,
update_protocol()
,
update_version_number()
if (FALSE) { # \dontrun{
add_subprotocols(code_mainprotocol = 'spp-999-en')
} # }