R language
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

R language

  • 98 views
Uploaded on

R programming , Debugging in R

R programming , Debugging in R

More in: Software
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
98
On Slideshare
98
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
3
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. R programming Debugging in R Faisal Imran Rizwan Ali
  • 2. Following are the debugging Flow  Debug, browser and trace R programming (Debugging in R) Overview
  • 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.  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.  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. R programming (Debugging in R)
  • 7. R programming (Debugging in R)
  • 8. R programming (Debugging in R)
  • 9. R programming (Debugging in R)
  • 10. R programming (Debugging in R)
  • 11. R programming (Debugging in R) Thank you