formals: Extract or Replace the Parameters of a Function Definition

View source: R/rlanguge.R

formalsR Documentation

Extract or Replace the Parameters of a Function Definition

Description

This function extracts or replaces the parameters (formal arguments) of the given function definition.

Usage

formals(fun)

formals(fun, envir) <- value

Arguments

fun

(Function) The function definition from which to extract or replace the parameters.

envir

Currently unused.

value

The value to replace the parameters with.


nick-ulle/ast documentation built on May 14, 2024, 7:40 p.m.