Is there a way in R to list the functions that are contained in a given function?
For instance in the code below:
myFun <- function(x) {
res <- list(m1=mean(x), s1=sd(x), mi=min(x))
return(res)
}
How to extract from the function myFun the names of the functions used. In this case I would like to have a vector with mean, sd and min.
I would like to do this without having to call the function (otherwise Rprof() would do the job).