retrieveFunctionArguments: Retrieve Function Arguments.

Description Usage Arguments Value Author(s) Examples

View source: R/retrieveFunctionArguments.R

Description

Use method retrieveFunctionArguments to get function or primitive arguments.

Usage

1

Arguments

fun_f_1

a function or primitive. Not a string!

Value

A pairlist. See formals.

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# typical test on a primitive
retrieveFunctionArguments(sin)
#$x
#

# typical test on a function
retrieveFunctionArguments(ls)
#$name


#$pos
#-1L

#$envir
#as.environment(pos)

#$all.names
#[1] FALSE

#$pattern
#

#$sorted
#[1] TRUE

neonira/wyz.code.offensiveProgramming documentation built on Feb. 20, 2020, 2:01 p.m.