append_list_replace: append replace list

Description Usage Arguments Details Value

View source: R/render-utils.R

Description

merge multiple lists with replacement

Usage

1

Arguments

list0

the list to append to (w/ replacement)

...

additional lists or .yaml filepaths to add to or replace elements in list0

Details

order matters for ... arguments. The LAST argument will overwrite anything that proceeds it. That means that append_list_replace(list(dog='Larry'), list(dog='Cindy')) will use dog='Cindy'.

Value

the merged list with later elements in ... replacing earlier ones


USGS-R/meddle documentation built on Nov. 21, 2020, 7:44 p.m.