This calls utils::modifyList iteratively using
base::Reduce, so it can handle >2 lists.
The subsequent list elements that share a name will override
previous list elements with that same name.
It also will handle the case where any list is a NULL. Note:
default keep.null = TRUE, which is different than modifyList
Usage
modifyList2(..., keep.null = FALSE)
modifyList3(..., keep.null = TRUE)
Arguments
...
One or more named lists.
keep.null
If TRUE, NULL elements in val
become NULL elements in x. Otherwise, the
corresponding element, if present, is deleted from x.
Details
More or less a convenience around
Reduce(modifyList, list(...)), with some checks, and the addition of
keep.null = TRUE by default.