get_protocolnumbers: Function to list all occupied protocol numbers

View source: R/create_protocol.R

get_protocolnumbersR Documentation

Function to list all occupied protocol numbers

Description

This function will search for protocol numbers in filenames of Rmarkdown files listed underneath the source folder. The search will be restricted to files of a given protocol type and given language.

Usage

get_protocolnumbers(
  protocol_type = c("sfp", "sip", "sap", "sop", "spp"),
  language = c("nl", "en")
)

Arguments

protocol_type

A character string equal to sfp (default), sip, sap, sop or spp.

language

Language of the protocol, either "nl" (Dutch), the default, or "en" (English).

Value

A character vector with occupied protocol numbers for a specific protocol type

See Also

Other utility: add_label(), get_path_to_protocol(), get_protocol_type(), get_short_titles(), get_version_number(), increment_version_number()

Examples

## Not run: 
get_protocolnumbers()

## End(Not run)

inbo/protocolshelper documentation built on Sept. 6, 2024, 9:15 p.m.