body: Extract or Replace the Body of a Function Definition

View source: R/rlanguge.R

bodyR Documentation

Extract or Replace the Body of a Function Definition

Description

This function extracts or replaces the body of the given function definition.

Usage

body(fun)

body(fun, envir) <- value

Arguments

fun

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

envir

Currently unused.

value

The value to replace the body with.


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