Function to get (or set) the full path to a protocol
Source:R/get_path_to_protocol.R
get_path_to_protocol.RdA 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.
Arguments
- protocol_code
Character string giving the protocol code
- theme
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 asfpprotocol.- 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
sppprotocol.- 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.
See also
Other utility:
add_label(),
get_protocol_type(),
get_protocolnumbers(),
get_short_titles(),
get_version_number(),
increment_version_number()