update_ast_check_calls {ottr}R Documentation

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)

Arguments

tree

The tree to traverse

list_name

The quoted name of the list

Value

The tree with substitutions made


[Package ottr version 1.5.0 Index]