get_dot_args: Get dot (...) arguments.

View source: R/visualizer-lib-utils.R

get_dot_argsR Documentation

Get dot (...) arguments.

Description

Helper function to merge default and user-specified dot (...) arguments such that default arguments are overwritten by the user-specified arguments.

Usage

get_dot_args(user_args, default_args)

Arguments

user_args

List of user-specified dot (...) arguments.

default_args

List of default dot (...) arguments.

Value

A named list of arguments that includes all arguments from the user and the defaults, but with the user-specified arguments overwriting the defaults.

Examples

arg_list <- get_dot_args(user_args = list(a = 1, b = 2, c = 3),
                         default_args = list(a = "a", d = "d"))


Yu-Group/simChef documentation built on March 25, 2024, 3:22 a.m.