calledBy: calledBy

View source: R/calledBy.R

calledByR Documentation

calledBy

Description

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

Usage

calledBy(fun = "exams2pdf")

Arguments

fun

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

Value

logical

Examples

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

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.