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 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, "\n")
>
> but not when using Sweave.
>
> Thanks for your help,
> Jimmy
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [email protected] 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.
>
______________________________________________
[email protected] 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.