append_list_replace: append replace list

View source: R/render-utils.R

append_list_replaceR Documentation

append replace list

Description

merge multiple lists with replacement

Usage

append_list_replace(list0, ...)

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 April 29, 2023, 11:50 a.m.