Getting more info from Rprof()

后端 未结 3 478
情书的邮戳
情书的邮戳 2020-12-31 22:01

I\'ve been trying to dig into what the time-hogs are in some R code I\'ve written, so I\'m using Rprof. The output isn\'t yet very helpful though:



        
3条回答
  •  星月不相逢
    2020-12-31 23:08

    The existing CRAN package profr and proftools are useful for this. The latter can use Rgraphviz which isn't always installable.

    The R Wiki page on profiling has additional info and a nice script by Romain which can also visualize (but requires graphviz).

提交回复
热议问题