R language

326 views

Published on

R programming , Debugging in R

Published in: Software
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
326
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
8
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

R language

  1. 1. R programming Debugging in R Faisal Imran Rizwan Ali
  2. 2. Following are the debugging Flow  Debug, browser and trace R programming (Debugging in R) Overview
  3. 3.  debug() works by marking functions for debugging.  When R starts to evaluate such a function, the evaluator automatically breaks to the debugger.  Use debug(fun) to mark a function for debugging.  all undebug(fun) to remove the debugging flag from a function R programming (Debugging in R) debug()
  4. 4.  browser() function in R's base package allows you to single step through the execution of an R function.  You can view and change objects during execution R programming (Debugging in R) browser()
  5. 5.  The trace() function modifies a function to allow debug code to be temporarily inserted  A call to trace allows you to insert debugging code  A call to untrace cancels the tracing  Specified methods can be traced the same way, without tracing all calls to the function  Tracing can be temporarily turned on or off globally by calling tracingState. R programming (Debugging in R) trace()
  6. 6. R programming (Debugging in R)
  7. 7. R programming (Debugging in R)
  8. 8. R programming (Debugging in R)
  9. 9. R programming (Debugging in R)
  10. 10. R programming (Debugging in R)
  11. 11. R programming (Debugging in R) Thank you

×