Skip to contents

For a provided filepath, identify the cheers classification tags and the function names that follow them.

Usage

get_file_cheers_classifications(
  filename,
  cheers_pattern,
  function_pattern = "(\\s|=|-)function\\("
)

Arguments

filename

A string containing the filepath to the file to be checked

cheers_pattern

A string containing the roxygen tag for cheers which is used as an identifier

function_pattern

A string containing the pattern to identify functions

Value

A list containing the cheers tags and the function names that follow them

See also