Learn R Programming

rlist (version 0.4.6.2)

callwith: Evaluate a function with a modified default values

Description

Evaluate a function with a modified default values

Usage

callwith(fun, args, dots = list(), keep.null = FALSE, envir = parent.frame())

Arguments

fun

either a function or a non-empty character string naming the function to be called

args

a list of values to modify the default arguments of the function

dots

the user-specific input (usually from ...)

keep.null

TRUE to keep NULL values after argument modifications

envir

the environment to evaluate the function call