Alaios <ala...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to