getCall2: Returns the name of a call as string.

Description Usage Arguments Value Examples

Description

When called inside a function, returns the parent function's name.

Usage

1
getCall2(level = -1)

Arguments

level

0 returns "getCall2", -1 returns the name of the function in which getCall2(-1) is called etc.

Value

string

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
getCall2(0)

foo <- function(){
return(getCall2())
}
foo()

bar <- function (somevar){
foo <- function(){
	return(getCall2(-2))
}
return(foo())
}

BPJandree/AutoGLM documentation built on May 5, 2019, 10:25 a.m.