extract_code: extract_code

View source: R/string_manipulation.R

extract_codeR Documentation

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

extract_code("cat")
extract_code("plot")

parse(text = extract_code("plot"))


regressoR documentation built on July 9, 2023, 5:26 p.m.