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

View source: R/update_ast_check_calls.R

update_ast_check_callsR 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


ucbds-infra/ottr documentation built on Feb. 24, 2024, 2:31 a.m.