A call matched by call_regex whose closing parenthesis is on a later line,
as in read.csv( with "./data.csv") on the next line: the line-by-line
search for file names saw the call without its file name, and the file name
without its call (#568). Quotes and brackets are counted; a call not closed
within max_lines lines is left out.
Usage
.code_open_calls(code_text, call_regex, max_lines = 20L)
Arguments
- code_text
the lines of one file, comments removed
- call_regex
a regular expression ending in the call's opening \\(
- max_lines
the most lines one call may take
Value
a list: calls, the text of each such call from its name to its
closing parenthesis, and lines, the numbers of the lines after the first
that the calls take