extract_code {regressoR} | R Documentation |
gets the code of a function in text form.
extract_code(funcion, envir = parent.frame())
funcion |
the name of the function to be extracted. |
envir |
the environment in which expr is to be evaluated. |
extract_code("cat")
extract_code("plot")
parse(text = extract_code("plot"))