get_short_titles: Function to list all short titles that are already in use.

View source: R/create_protocol.R

get_short_titlesR Documentation

Function to list all short titles that are already in use.

Description

This function will search for short titles 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_short_titles(
  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 short titles that are in use for a given protocol type.

See Also

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

Examples

## Not run: 
get_short_titles()

## End(Not run)

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