[R] R step-by-step execution

news at aleblanc.cotse.net news at aleblanc.cotse.net
Fri Oct 22 11:43:27 CEST 2010


Alaios <alaios at yahoo.com> writes:

>  
> Hello!
> I wouldl ike to ask you if R supports step by step execution.  I have written 
> some nested loops and  I would like to check on every  step what are the values 
> of some variables. Printing all the variables  just creates a really big output 
> of numbers.
>
> Could you please give some debugging tutorial that included the aforementioned 
> functionalities?
>

At your command prompt type: help(browser)

Alternatively you can use the debug library: http://cran.r-project.org/web/packages/debug/index.html

> |Moreover can you please tell me how I can concatenate variables and strings so 
> to print some debugging messages /
> "The value of x is " + x + " and the value of y is " +y.
>

message <- paste("The value of x is ",x," and the value of y is ",y,sep="")
print(message)

-- 
aleblanc



More information about the R-help mailing list