fn_body

0th

Percentile

Get or set function body

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.

Aliases
  • fn_body
  • fn_body<-
Documentation reproduced from package rlang, version 0.2.0, License: GPL-3

Community examples

Looks like there are no examples yet.