get_file_cheers_classifications: Get cheers classification tags from a given file

View source: R/cheers_checker.R

get_file_cheers_classificationsR Documentation

Get cheers classification tags from a given file

Description

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

Other cheers: get_folder_cheers_classifications()


assertHE documentation built on June 8, 2025, 10:08 a.m.