parse_r_function_dependencies: Parse R Function Dependencies

View source: R/ast.R

parse_r_function_dependenciesR Documentation

Parse R Function Dependencies

Description

Identify function calls in an R File.

Usage

parse_r_function_dependencies(parsed_r_file, function_definition)

Arguments

parsed_r_file

A parsed R file (see parse_rfile_ast)

function_definition

A list of function definitions (see parse_r_function_definition)

Value

Returns a table of 6 columns: src_functions_call_name | src_functions_call_filename | sr_functions_caller_name | src_functions_caller_filename | src_line_functions_call_start | src_line_functions_call_end.

The 'call' name and filename are the function calls this files perform towards other files. The 'caller' name and filename define which functions performed the function call (i.e. the call originate on them). Finally the 'call' start and end lines define the line position of 'src_functions_call_filename' where the call occurred.


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.