Re: [R] a knitr question

2014-07-31 Thread Yihui Xie
Great. I also said "I see the point of keeping prompts", and that is why the chunk option prompt=TRUE is provided in knitr. I may not agree with your preference, but that does not mean I should stop you completely from having your own preference. Regards, Yihui -- Yihui Xie Web: http://yihui.nam

Re: [R] a knitr question

2014-07-31 Thread Duncan Murdoch
On 30/07/2014, 11:12 PM, Yihui Xie wrote: > No. That is not my suggestion. Joshua Wiley correctly explained what I > was suggesting. Prompts are useful in the R console, but not > necessarily in a report. Okay, then we agree. For Erin's purpose (teaching), it is helpful to beginners if the docume

Re: [R] a knitr question

2014-07-31 Thread Ista Zahn
On Thu, Jul 31, 2014 at 4:28 AM, Rolf Turner wrote: > On 31/07/14 12:06, Joshua Wiley wrote: > > > > >> I don't think that this is about prompts in interactive R, but when a >> document is knit, should the echoed code in the report have prompts or >> not. > > > Surely that should be left up to th

Re: [R] a knitr question

2014-07-31 Thread Rolf Turner
On 31/07/14 12:06, Joshua Wiley wrote: I don't think that this is about prompts in interactive R, but when a document is knit, should the echoed code in the report have prompts or not. Surely that should be left up to the user. And as Erin pointed out in her second message, it is. The def

Re: [R] a knitr question

2014-07-30 Thread Yihui Xie
No. That is not my suggestion. Joshua Wiley correctly explained what I was suggesting. Prompts are useful in the R console, but not necessarily in a report. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Wed, Jul 30, 2014 at 6:47 PM, Duncan Murdoch wrote: > So your suggestion is that th

Re: [R] a knitr question

2014-07-30 Thread Duncan Murdoch
On 30/07/2014, 8:06 PM, Joshua Wiley wrote: > On Thu, Jul 31, 2014 at 9:47 AM, Duncan Murdoch > mailto:murdoch.dun...@gmail.com>> wrote: > > On 30/07/2014, 2:20 PM, Yihui Xie wrote: > > As a reader, I often want to run the code by myself _while_ I'm > > reading a particular part of an

Re: [R] a knitr question

2014-07-30 Thread Michael Hannon
That's what I thought. Also, just FYI, the "ed" editor on *nix systems doesn't have a prompt (at least not by default). My son thought I was "trolling" him when I told him that. -- Mike On Wed, Jul 30, 2014 at 5:06 PM, Joshua Wiley wrote: > On Thu, Jul 31, 2014 at 9:47 AM, Duncan Murdoch > wr

Re: [R] a knitr question

2014-07-30 Thread Joshua Wiley
On Thu, Jul 31, 2014 at 9:47 AM, Duncan Murdoch wrote: > On 30/07/2014, 2:20 PM, Yihui Xie wrote: > > As a reader, I often want to run the code by myself _while_ I'm > > reading a particular part of an article/report. I find it convenient > > to be able to copy the code as I'm reading it, instead

Re: [R] a knitr question

2014-07-30 Thread Duncan Murdoch
On 30/07/2014, 2:20 PM, Yihui Xie wrote: > As a reader, I often want to run the code by myself _while_ I'm > reading a particular part of an article/report. I find it convenient > to be able to copy the code as I'm reading it, instead of minimizing > my current window, opening an R script, and runn

Re: [R] a knitr question

2014-07-30 Thread Yihui Xie
As a reader, I often want to run the code by myself _while_ I'm reading a particular part of an article/report. I find it convenient to be able to copy the code as I'm reading it, instead of minimizing my current window, opening an R script, and running the part that I'm interested in. Of course, t

Re: [R] a knitr question

2014-07-30 Thread Greg Snow
ction to knitr >>> > >>> > "It is easy to revert to the output with prompts (set option >>> prompt=TRUE), and you will quickly realize the inconvenience to the readers >>> if they want to copy and run the code ..." >>> > >>>

Re: [R] a knitr question

2014-07-30 Thread Ista Zahn
onvenience to the readers >> if they want to copy and run the code ..." >> > >> > Peter Alspach >> > >> > -Original Message- >> > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] >> On Behalf Of Erin

Re: [R] a knitr question

2014-07-29 Thread Rmh
option >> prompt=TRUE), and you will quickly realize the inconvenience to the readers >> if they want to copy and run the code ..." >>> >>> Peter Alspach >>> >>> -Original Message- >>> From: r-help-boun...@r-project.org [m

Re: [R] a knitr question

2014-07-29 Thread Erin Hodgess
quickly realize the inconvenience to the readers > if they want to copy and run the code ..." > > > > Peter Alspach > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Erin Hodgess

Re: [R] a knitr question

2014-07-29 Thread Yihui Xie
lp-boun...@r-project.org] On > Behalf Of Erin Hodgess > Sent: Wednesday, 30 July 2014 10:28 a.m. > To: r-help@r-project.org > Subject: Re: [R] a knitr question > > Sorry: just solved it. > > You simply include "prompt=TRUE" in the <<>> section &

Re: [R] a knitr question

2014-07-29 Thread Peter Alspach
al Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Erin Hodgess Sent: Wednesday, 30 July 2014 10:28 a.m. To: r-help@r-project.org Subject: Re: [R] a knitr question Sorry: just solved it. You simply include "prompt=TRUE" in the <<>

Re: [R] a knitr question

2014-07-29 Thread Erin Hodgess
Sorry: just solved it. You simply include "prompt=TRUE" in the <<>> section Thanks, Erin On Tue, Jul 29, 2014 at 6:22 PM, Erin Hodgess wrote: > Hello! > > When constructing code using knitr, is there a way to get the ">" prompt > to appear, please? > > Everything else works great!! > > Than

[R] a knitr question

2014-07-29 Thread Erin Hodgess
Hello! When constructing code using knitr, is there a way to get the ">" prompt to appear, please? Everything else works great!! Thank you! Sincerely, Erin -- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodg...@gm