regressoR (version 1.1.8)

extract_code: extract_code

Description

gets the code of a function in text form.

Usage

extract_code(funcion, envir = parent.frame())

Arguments

funcion

the name of the function to be extracted.

envir

the environment in which expr is to be evaluated.

Examples

Run this code
# NOT RUN {
extract_code("cat")
extract_code("plot")

parse(text = extract_code("plot"))

# }

Run the code above in your browser using DataLab