### Name: body ### Title: Access to and Manipulation of the Body of a Function ### Aliases: body body<- ### Keywords: programming ### ** Examples body(body) f <- function(x) x^5 body(f) <- quote(5^x) ## or equivalently body(f) <- expression(5^x) f(3) # = 125 body(f) ## creating a multi-expression body e <- expression(y <- x^2, return(y)) # or a list body(f) <- as.call(c(as.name("{"), e)) f f(8)