Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

merge_dots_with_list

Merge ellipsis args with a list.


Description

Merges variable length ellipsis arguments to a function with a list argument.

Usage

merge_dots_with_list(
  ...,
  l = list(),
  warn_on_dupes = TRUE,
  allow_unnamed_elements = FALSE
)

Arguments

...

Some inputs.

l

A list.

warn_on_dupes

TRUE or FALSE. Should a warning be given if both x and y have elements with the same name. See note.

allow_unnamed_elements

TRUE or FALSE. Should unnamed elements be allowed?

Value

A list containing the merged inputs.

Note

If any arguments are present in both the ... and l arguments, the ... version takes preference, and a warning is thrown.

See Also

Examples

merge_dots_with_list(
  foo = 1, 
  bar = 2, 
  baz = 3, 
  l = list(foo = 4, baz = 5, quux = 6)
)

assertive.base

A Lightweight Core of the 'assertive' Package

v0.0-9
GPL (>= 3)
Authors
Richard Cotton [aut, cre], Sunkyu Choi [trl], Ivanka Skakun [trl], Gergely Dar<c3><b3>czi [trl], Anton Antonov [trl], Hisham Ben Hamidane [trl], Anja Billing [trl], Aditya Bhagwat [trl], Rasmus B<c3><a5><c3><a5>th [trl], Mine Cetinkaya-Rundel [trl], Aspasia Chatziefthymiou [trl]
Initial release
2021-02-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.