
Last chance! 50% off unlimited learning
Sale ends in
For screening purposes it can be useful to get a list of all function calls our function may depend on. GetCall()
parses the function source and return all found function calls grouped by their package.
GetCalls(fun, alphabetic = TRUE, package = NULL)
the name of the function to be parsed
logic, determining the order of the result
name of the package, if only functions of this specific package should be returned.
a list of vectors structered by package
LsFct()
# NOT RUN {
GetCalls("t.test.default")
sapply(c("Closest", "Format"),
function(x) paste(unname(unlist(GetCalls(x))), collapse=", "))
# }
Run the code above in your browser using DataLab