get_function_names: Get functions defined in a vector of lines

View source: R/get_function_names.R

get_function_namesR Documentation

Get functions defined in a vector of lines

Description

Ignores all comment lines and defines a function name to be the set of contiguous (non-blank characters) immediately prior to 'function\ *(' and must be the first non-blank token on a line.

Usage

get_function_names(lines)

Arguments

lines

character vector with text from file

Value

A character vector of function names or an empty character vector


rmsharp/rmsutilityr documentation built on Feb. 13, 2024, 6:01 p.m.