3
我很困惑,如何让Rprof
与R.困惑Rprof有R
工作,我跟着文档中的样品,并有这样的事情
Rprof(filename="testProfile.out")
test()
Rprof(NULL)
summaryRprof("testProfile.out")
然而,内testProfile.out
,我有一个行:sample.interval=20000
这混淆了我,当我运行summaryRProf
,我得到no events were recorded
任何建议,将不胜感激。
test()是做什么的? Rprof配置文件工作代码。因此,如果test()返回一个错误,即找不到函数test(),则不会记录事件。 – tophcito 2013-04-07 19:07:02
也许这有助于:http://stackoverflow.com/a/15821706/289572 – Henrik 2013-04-07 20:16:10
嗯..让我们说,测试=功能(){ 为(我在1:50)打印(我) } – user1431282 2013-04-07 20:29:35