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

Description Usage Arguments Value Examples

View source: R/make_fxns.R

Description

Make functions from utils::getParseData() output

Usage

1
2
3

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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 Dec. 30, 2021, 11:53 a.m.