named_list: Create a named list from arguments

View source: R/r-utils.R

named_listR Documentation

Create a named list from arguments

Description

Constructs a list from the provided arguments where all elements are named. This wraps rlang::dots_list() but changes two defaults:

  • .named is set to TRUE

  • .homonyms is set to "error"

Usage

named_list(...)

Arguments

...

Arguments to collect in a list. These dots are dynamic.

Details

Other parameters retain their defaults from rlang::dots_list():

  • .ignore_empty = "trailing"

  • .preserve_empty = FALSE

  • .check_assign = FALSE

Value

A named list.

See Also

rlang::dots_list()


keras3 documentation built on Feb. 13, 2026, 5:06 p.m.