【问题标题】:R: code analysis toolsR:代码分析工具 【发布时间】:2012-07-17 00:59:43 【问题描述】: R 中是否有任何工具可以让我查看是什么使函数变慢(函数中花费最多时间的代码行、统计数据等)? 干杯! 【问题讨论】: Rprof 或者profr,如果这样更吸引人的话 标签: performance r analysis 【解决方案1】: 这是关于 Rprof 的简单指南,http://cran.r-project.org/doc/manuals/R-exts.html#Profiling-R-code-for-speed 当然还有包说明:http://stat.ethz.ch/R-manual/R-patched/library/utils/html/Rprof.html 【讨论】: