assign_formals: Assign the formals of a function

Description Usage Arguments Value Examples

Description

Assign the 'formals' of a function to the global enviroment. Helpful when debugging or prototyping.

Usage

1

Arguments

fun

A function.

Value

Assigns the default values of the arguments of a function to variables of the argument name. Invisibly returns the assigned variable names.

Examples

1
2
3
4
5
assigned_vars <- assign_formals(stats::binom.test)
sort(assigned_vars)
ls()
alternative
eval(alternative)

AEBilgrau/Bmisc documentation built on May 5, 2019, 11:28 a.m.