R/get_path_to_protocol.R
get_path_to_protocol.Rd
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
)
Character string giving the protocol code
A character string equal to one of "generic"
,
"water"
, "air"
, "soil"
, "vegetation"
or "species"
.
Defaults to NULL.
Only needed if no folder with the name of the protocol code exists and
the request is for a sfp
protocol.
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 spp
protocol.
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()
if (FALSE) { # \dontrun{
get_path_to_protocol(protocol_code = "sfp-401-nl")
} # }