Re: [R] Knitr: setting echo = FALSE globally [RESOLVED]

2015-07-21 Thread Rich Shepard
On Tue, 21 Jul 2015, John Kane wrote: It sounds like your approach with the chunks is equivalent to my approach. Somewhere I remember reading that the global chunk commands apply to everything 'after' the global command--which once one thinks about it is sensible . John, Yes, it makes sense

Re: [R] Knitr: setting echo = FALSE globally [RESOLVED]

2015-07-21 Thread John Kane
ot of time once you get it working. John Kane Kingston ON Canada > -Original Message- > From: rshep...@appl-ecosys.com > Sent: Tue, 21 Jul 2015 08:30:09 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Knitr: setting echo = FALSE globally [RESOLVED] > >

Re: [R] Knitr: setting echo = FALSE globally [RESOLVED]

2015-07-21 Thread Rich Shepard
On Mon, 20 Jul 2015, John Kane wrote: I have no idea wha that chunk is not working but I think you can get the same result using the old method Stick the following in an ERT box: <>= opts_chunk$set(echo = FALSE) @ John, My original response was too large (3 attached PDF files) and was held

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread John Kane
rotchety. John Kane Kingston ON Canada > -Original Message- > From: rshep...@appl-ecosys.com > Sent: Mon, 20 Jul 2015 12:58:51 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Knitr: setting echo = FALSE globally > > On Mon, 20 Jul 2015, Thierry Onkel

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Rich Shepard
On Mon, 20 Jul 2015, Thierry Onkelinx wrote: We need the source file. Attached to the original message was the TeX output called, 'sample.txt'. I've attached it again, but with the .tex extension. Also, the .lyx file is attached. Rich#LyX 2.1 created this file. For more info see http://www.

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Rich Shepard
On Mon, 20 Jul 2015, Yihui Xie wrote: Section 5.1.3 of the book "Dynamic Documents with R and knitr" is titled "Global Options". I don't know how to make it more clear for readers to find information on global options in the book. Yes, I've read that and have not found where 'opts_chunk$set(

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Thierry Onkelinx
We need the source file. Not the output. And please try to make it as small as possible while still reproducing the problem. The smaller the example, the easier it is for us to help you. Op 20-jul.-2015 21:17 schreef "Rich Shepard" : > On Mon, 20 Jul 2015, Thierry Onkelinx wrote: > > Have you tri

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Rich Shepard
On Mon, 20 Jul 2015, Thierry Onkelinx wrote: Have you tried echo = FALSE instead of echo = F. If that doesn't solve your problem, please provide a minimal reproducible example. Yes, I have. Attached is a TeX file renamed to sample.txt (rather than .tex to ensure it is not stripped), a PDF

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Yihui Xie
Section 5.1.3 of the book "Dynamic Documents with R and knitr" is titled "Global Options". I don't know how to make it more clear for readers to find information on global options in the book. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Mon, Jul 20, 2015 at 12:58 PM, Rich Shepard wro

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Thierry Onkelinx
Have you tried echo = FALSE instead of echo = F. If that doesn't solve your problem, please provide a minimal reproducible example. Op 20-jul.-2015 20:02 schreef "Rich Shepard" : > Near the beginning of a LyX document I have a knitr chunk with options > that begin with 'global_options', and inc

[R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Rich Shepard
Near the beginning of a LyX document I have a knitr chunk with options that begin with 'global_options', and includes echo=F. This presents the R code in that chunk from displaying in the compiled PDF file. However, all following knitr chunks are included in the PDF file. Reading the docs (in