make_flag_list: Create list of conditional flags

Description Usage Arguments Value

View source: R/utils.R

Description

This function identifies whether an item in a named list is NA or not, and creates a named list with respective TRUE / FALSE values. This list can be appended to an existing whisker tokens list, and used in templates for conditional generation of text snippets and code chunks. The names in the generated list are of the form previousname_roar_flag

Usage

1
make_flag_list(tokenlist)

Arguments

tokenlist,

named list with at least 1 item

Value

list, with one item per tokenlist item


the-Hull/ROAR documentation built on Jan. 19, 2021, 4:14 p.m.