fn_body: Get or set function body
Description
fn_body()
is a simple wrapper around base::body()
. The setter
version preserves attributes, unlike body<-
.
Usage
fn_body(fn = caller_fn())fn_body(fn) <- value
Arguments
fn
A function. It is lookep up in the calling frame if not
supplied.
value
New formals or formals names for fn
.