Learn R Programming

ottr (version 1.5.3)

update_ast_check_calls: Collect results of calls to ottr::check in an AST

Description

Traverse an AST (a list of expressions) and change calls of the form . = ottr::check(...) so that they are appended to a list with name list_name.

If list_name is check_results_XX, then . = ottr::check(...) becomes check_results_XX[[<int>]] = ottr::check(...), where <int> is an integer

Usage

update_ast_check_calls(tree, list_name)

Value

The tree with substitutions made

Arguments

tree

The tree to traverse

list_name

The quoted name of the list