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
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
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
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
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
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
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
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
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
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
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 ..."
>>> >
>>>
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
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
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
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
&
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 <<>
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
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
18 matches
Mail list logo