invoke: Invoke a function with a list of arguments

View source: R/utils.R

invokeR Documentation

Invoke a function with a list of arguments

Description

Invoke a function with a list of arguments

Usage

invoke(.fn, .args = list(), ..., .env = caller_env())

Arguments

.fn

A function, or function name as a string.

.args

A list of arguments.

...

Other arguments passed to the function.

.env

Environment in which to evaluate the call. This will be most useful if .fn is a string, or the function has side-effects.


zh542370159/SCP documentation built on Nov. 22, 2023, 2:34 a.m.