View source: R/add_dependencies.R
add_dependencies | R Documentation |
index.Rmd
fileAdds dependencies to the YAML of an index.Rmd
file
add_dependencies(
code_mainprotocol,
protocol_code,
version_number,
params,
appendix = !is.na(params)
)
code_mainprotocol |
Protocol code of the protocol for which dependencies
need to be declared in the YAML of its |
protocol_code |
Character vector of protocol codes that are dependencies to the main protocol. |
version_number |
Character vector of version numbers corresponding with protocol_code. |
params |
List of lists with protocol-specific parameters corresponding
with parameters from the protocols in protocol_code. Use |
appendix |
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 |
Other creation:
add_one_subprotocol()
,
add_subprotocols()
,
create_protocol()
,
insert_protocolsection()
,
update_protocol()
,
update_version_number()
## Not run:
protocolhelper::add_dependencies(
code_mainprotocol = "spp-999-en",
protocol_code = c("sfp-123-en", "spp-124-en"),
version_number = c("2020.01", "2020.02"),
params = list(NA, list(width = 8, height = 8))
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.