calledBy: Function Calling

View source: R/calledBy.R

calledByR Documentation

Function Calling

Description

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

Usage

calledBy(fun = "exams2pdf")

called_by(fun = "exams2pdf")

Arguments

fun

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

Value

logical

Examples

funb <- function() { calledBy('funa') }
funa <- function() { funb() }
funa()

exams.forge documentation built on Sept. 11, 2024, 5:32 p.m.