Re: [R] Sweave counter

2010-05-19 Thread Jimmy Söderly
Thanks !!! 2010/5/18 Benno Pütz > Under UNIX I usually write something like > >system(paste("echo '",...,"'", sep=sep)) > > where I replace the '...' with whatever I need to show. > > > This would need some adjustments for non-scalars, though. > > Benno > > Am 18.Mai.2010 um 19:10 schrie

Re: [R] Sweave counter

2010-05-18 Thread Benno Pütz
Under UNIX I usually write something like system(paste("echo '",...,"'", sep=sep)) where I replace the '...' with whatever I need to show. This would need some adjustments for non-scalars, though. Benno Am 18.Mai.2010 um 19:10 schrieb Jimmy Söderly: > Dear R users, > > I am using th

Re: [R] Sweave counter

2010-05-18 Thread Ista Zahn
Hi Jimmy, You can use message() instead of cat(): if (i%%100==0) message(i) Best, Ista On Tuesday 18 May 2010 1:10:51 pm Jimmy Söderly wrote: > Dear R users, > > I am using the Sweave package and I am doing some MCMC. I have a loop > function for my MCMC. Every 100 iterations, I want the number

[R] Sweave counter

2010-05-18 Thread Jimmy Söderly
Dear R users, I am using the Sweave package and I am doing some MCMC. I have a loop function for my MCMC. Every 100 iterations, I want the number of iterations already done to appear on my screen (but not on the final document). Is that possible ? Usually I can rely on > if (i%%100==0) cat(i, "\