Navigate through function call R -
i have "function call tree" don't know if it's possible , found nothing on internet.
for example :
stdmetrics <- function (x, y, z, i, a, rn, class, pulseid, dz = 1) { c = stdmetrics_ctrl(x, y, z, a) z = stdmetrics_z(z, dz) = stdmetrics_i(i, z, class, rn) rn = stdmetrics_rn(rn, class) pu = stdmetrics_pulse(pulseid, rn) aa = sublevelcall() metrics = c(c, z, i, rn, pu) return(metrics) } sublevelcall <- function() { sublevelcall2() } result <- getfunctioncalltree(stdmetrics)
i obtain result no matter data structure :
stdmetrics |stdmetrics_ctrl |stdmetrics_z |stdmetrics_i |stdmetrics_rn |stdmetrics_pulse |sublevelcall |sublevelcall2
Comments
Post a Comment