Re: [R] commenting demos

2003-10-27 Thread Spencer Graves
Could one use "cat" for comments, as: cat("this is a comment that may survive 'source'\n") ?? hope this helps. spencer graves Martin Maechler wrote: "Olivia" == Olivia Lau <[EMAIL PROTECTED]> on Sun, 26 Oct 2003 00:49:45 -0400 writes: Olivia> Hi, Is there a way to make

Re: [R] commenting demos

2003-10-27 Thread Martin Maechler
> "Olivia" == Olivia Lau <[EMAIL PROTECTED]> > on Sun, 26 Oct 2003 00:49:45 -0400 writes: Olivia> Hi, Is there a way to make demo() print comments Olivia> along with the code and output? not so easily. The same applies to example(.). Both demo(.) and example(.) end up callin

[R] commenting demos

2003-10-25 Thread Olivia Lau
Hi, Is there a way to make demo() print comments along with the code and output? For example, if I use something like readline("..."), demo prints both readline("...") and ...; as far as I can tell, this is also true of print() and cat(). I just want students to stop and think about every comman