Learn R Programming

exams.forge (version 1.0.10)

calledBy: Function Calling

Description

Checks if the result from base::sys.calls contains a call from fun.

Usage

calledBy(fun = "exams2pdf")

called_by(fun = "exams2pdf")

Value

logical

Arguments

fun

character: name of the calling function (default: exams2pdf)

Examples

Run this code
funb <- function() { calledBy('funa') }
funa <- function() { funb() }
funa()

Run the code above in your browser using DataLab