View source: R/get_path_to_protocol.R
get_path_to_protocol | R Documentation |
A function that is used by other functions and should normally not be used directly.
For existing protocol codes, arguments theme
and project_name
are
always ignored.
The function will return the absolute path for that protocol.
For new sfp
or spp
protocols, also either the theme
or the
project_name
argument and short_title
are required apart from the
protocol_code
.
The function will construct the absolute path where the source code for that
new protocol will be written.
get_path_to_protocol(
protocol_code,
theme = NULL,
project_name = NULL,
short_title = NULL
)
protocol_code |
Character string giving the protocol code |
theme |
A character string equal to one of |
project_name |
Character string giving the name of the project folder.
Defaults to NULL.
Only needed if no folder with the name of the protocol code exists and
the request is for a |
short_title |
A character string of less than 20 characters to use in folder and filenames. Defaults to NULL. Only needed if no folder with the name of the protocol code exists. |
A character vector containing the full path to the protocol.
Other utility:
add_label()
,
get_protocol_type()
,
get_protocolnumbers()
,
get_short_titles()
,
get_version_number()
,
increment_version_number()
## Not run:
get_path_to_protocol(protocol_code = "sfp-401-nl")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.