0

I am wondering if there is a way to run the r script in such a way so that you can debug / check the state of the line. A similar thing is pressing F8 in VBA editor.

I have complected nested for loops in r , and some of the results are unexpected. I want to check through every loop and find out where exactly things go wrong

Any suggestions ?

Fahadakbar
  • 458
  • 6
  • 23
  • 1
    Are you using rstudio? Easy to set some breakpoints. Also: lots of debugging tutorials out there.. What have you already tried? – Wimpel Dec 03 '18 at 15:49
  • 1
    When you Googled "debugging in r" what tools did you find, and how did they not accomplish what you wanted? Explaining that in detail would save people trying to help you from wasting their time explaining something to you that you've already researched. – joran Dec 03 '18 at 15:50
  • i am using r studio , all the options in my debugging are grayed out. when i googled, the closest i got was here https://stats.stackexchange.com/questions/13535/running-an-r-script-line-by-line and i couldn't wrap my head around it – Fahadakbar Dec 03 '18 at 15:50

0 Answers0