Visualizing R Function Dependencies

前端 未结 2 1582
耶瑟儿~
耶瑟儿~ 2020-12-08 16:36

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 depe

2条回答
  •  不思量自难忘°
    2020-12-08 16:54

    I suggest using the foodweb function from mvbutils package.

    e <- new.env()
    e$func1 <- function(n) return(LETTERS[n])
    e$func2 <- function(n) return(func1(n%%26+1))
    
    library(mvbutils)
    foodweb(where = e)
    

    See examples under ?mvbutils for more.

提交回复
热议问题