I'm familiar with browser()
, trace()
, traceback()
, and options(error=recover)
. I'm also playing with the debug package, which looks nice. All of these put R miles ahead of other statistical packages I've worked with in terms of debugging facilities. But in comparison to compiled traditional languages, the picture seems less favorable. Which gives rise to two questions:
What debugging facility present in other languages do you miss the most?
Is it possible to add this functionality in R as it exists current, or does it require a compiler, etc.?
Edit: Eliminated my proposed entry since as was pointed out it does exist in R.
setdiff(union(debug functions in language !R), union(debug functions in language R))
. Second, although profiling and debugging are different, they're quite related. R lacks a line profiler, which is in several other interpreted languages. Third, someone outside of statistics must've coined the term "statistical profiler". With a little work R could stand peerless in the quality of its statistical profiling. :)codetools
, but Matlab, for instance, extends this by finding arrays that grow inside of loops.seq_along
may be one such analogue for R.