Adds dependencies to the YAML of an index.Rmd
file
add_dependencies(
code_mainprotocol,
protocol_code,
version_number,
params,
appendix = !is.na(params)
)
Protocol code of the protocol for which dependencies
need to be declared in the YAML of its index.Rmd
file
Character vector of protocol codes that are dependencies to the main protocol.
Character vector of version numbers corresponding with protocol_code.
List of lists with protocol-specific parameters corresponding
with parameters from the protocols in protocol_code. Use NA
if no
parameters should be set for a protocol.
Logical vector indicating whether or not a dependency needs
to be included as a subprotocol (at the end of the main protocol in an
appendix). Default is !is.na(params)
. When params
is not NA
, appendix
will always be set to TRUE
even if the user passes another value.
Other creation:
add_one_subprotocol()
,
add_subprotocols()
,
create_protocol()
,
insert_protocolsection()
,
update_protocol()
,
update_version_number()