Learn R Programming

wrapr (version 1.9.6)

srcfn: Wrap the source for an exprssion as a function.

Description

Wrap the source for an exprssion as a function.

Usage

srcfn(expr_src, arg_name = ".", args = list())

Arguments

expr_src

character, source code of expresson.

arg_name

characer, name of argument to assign.

args

named list of adittional arguments and values.

Value

SrcFunction

See Also

fnlist, pkgfn, wrapfn

Examples

Run this code
# NOT RUN {
f <- srcfn(". + z", ".", args = list(z = 10))
cat(format(f))
1:3 %.>% f


# }

Run the code above in your browser using DataLab