I have started to use Sweave to prepare reports for "end-users" of statistical analyses. For these users, there is not generally interest in the code used to accomplish the analysis, but only the results. However, sometimes I would like to prepare the same document, but with code chunks echoed, for my own use "on-the-fly" when discussing the statistical results. Is there a convenient way to set things up so that with a single switch I can change things like echo behavior throughout a document? Of course, a quick sed script would do the trick, but I was interested in other ideas? Thanks, Sean
Try
\SweaveOpts{echo=FALSE}
or
\SweaveOpts{echo=TRUE}
to set the default for echo one way or the other.
On Mon, Oct 6, 2008 at 3:27 PM, Sean Davis <sdavis2 at mail.nih.gov>
wrote:> I have started to use Sweave to prepare reports for "end-users"
of
> statistical analyses. For these users, there is not generally
> interest in the code used to accomplish the analysis, but only the
> results. However, sometimes I would like to prepare the same
> document, but with code chunks echoed, for my own use
"on-the-fly"
> when discussing the statistical results. Is there a convenient way to
> set things up so that with a single switch I can change things like
> echo behavior throughout a document? Of course, a quick sed script
> would do the trick, but I was interested in other ideas?
>
> Thanks,
> Sean
>
> ______________________________________________
> R-help at 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.
>
On Mon, Oct 6, 2008 at 3:30 PM, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:> Try > > \SweaveOpts{echo=FALSE} > or > \SweaveOpts{echo=TRUE}Perfect (and obvious). Thanks. Sean> to set the default for echo one way or the other. > > On Mon, Oct 6, 2008 at 3:27 PM, Sean Davis <sdavis2 at mail.nih.gov> wrote: >> I have started to use Sweave to prepare reports for "end-users" of >> statistical analyses. For these users, there is not generally >> interest in the code used to accomplish the analysis, but only the >> results. However, sometimes I would like to prepare the same >> document, but with code chunks echoed, for my own use "on-the-fly" >> when discussing the statistical results. Is there a convenient way to >> set things up so that with a single switch I can change things like >> echo behavior throughout a document? Of course, a quick sed script >> would do the trick, but I was interested in other ideas? >> >> Thanks, >> Sean >> >> ______________________________________________ >> R-help at 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. >> >