make_fxn: Make functions from 'utils::getParseData()' output

View source: R/make_fxns.R

make_fxnR Documentation

Make functions from utils::getParseData() output

Description

Make functions from utils::getParseData() output

Usage

make_fxn(x)

make_fxns(x)

Arguments

x

for make_fxn, a data.frame, as output from utils::getParseData(); for make_fxns, a list of those

Value

for make_fxn a function as a character string; for make_fxns, a list of those

Examples

## Not run: 
foo <- function(x) {
  if (x == 1) x else 5
}
foo
f <- mutate_one(foo)
f
x = f
make_fxn(f)

bar <- function(w) {
  if (w == 10) w else 5
}
g <- mutate_one(bar)
make_fxns(list(f, g))

## End(Not run)

ropensci/mutant documentation built on Nov. 13, 2024, 8:31 a.m.