If you have a block of R code, a combination of commands and functions, and you want to debug the code, line by line, and kinda go through the internal process R is doing behind the scene before it spits out an error message, what commands could one employ? trace()
and debug()
seem to be just for functions. I am trying to run my entire script and find out, line item by line item, what R is doing internally along each commend line.
I researched past archives and I found this: Debug Tools in R - stepping through code but alas with no solution to the problem