There are a lot of resources for people who want to visualize package dependencies, but I'm interested specifically in visualizing functions within a package and their dependencies on one another. There are tools like miniCRAN for graphing package dependencies, but is there anything available to graph function dependencies within a package?
For example, suppose I only have two functions in my package.
func1 <- function(n) return(LETTERS[n])
func2 <- function(n) return(func1(n%%26+1))
Then I would just want a graph with two labeled nodes and an edge connecting them, depicting the dependency of func2
on func1
.
I would think there are a lot of packages out there that have really hairy functional dependencies that such a utility could help in understanding/organizing/refactoring/etc.
Thanks.