[Rd] Changing style for the Sweave vignettes

2014-11-14 Thread Gordon K Smyth
Date: Thu, 13 Nov 2014 12:09:47 +0100 From: January Weiner To: r-devel Subject: [Rd] Changing style for the Sweave vignettes As a user, I am always annoyed beyond measure that Sweave vignettes precede the code by a command line prompt. It makes running examples by simple copying of the

Re: [Rd] Changing style for the Sweave vignettes

2014-11-13 Thread Yihui Xie
As someone who was also annoyed by command line prompts a couple of years ago, I wrote knitr and removed prompts as well as the continuation characters (+) by default (FAQ5: https://github.com/yihui/knitr/blob/master/FAQ.md). BTW, I do not always trust copying text from PDF. Perhaps it is fine for

Re: [Rd] Changing style for the Sweave vignettes

2014-11-13 Thread January Weiner
Dear Paul and Martin, thanks for the useful tips. I'll start with Paul's suggestion (getting rid of these '+'-es will already be a boon!), and move from my old Sweave vignettes when possible. Thank you! j. On 13 November 2014 15:35, Paul Gilbert wrote: > You might also consider starting your vi

Re: [Rd] Changing style for the Sweave vignettes

2014-11-13 Thread Paul Gilbert
You might also consider starting your vignettes with \begin{Scode}{echo=FALSE,results=hide} options(continue=" ") \end{Scode} Then you get one prompt but it is still easy to cut and paste. This has been in many of my packages for many years, so I think it would be fair to assume it is accept

Re: [Rd] Changing style for the Sweave vignettes

2014-11-13 Thread Martin Morgan
On 11/13/2014 03:09 AM, January Weiner wrote: As a user, I am always annoyed beyond measure that Sweave vignettes precede the code by a command line prompt. It makes running examples by simple copying of the commands from the vignette to the console a pain. I know the idea is that it is clear wha

Re: [Rd] Changing style for the Sweave vignettes

2014-11-13 Thread January Weiner
Thank you, Søren and Brian for your answers. Whether this is the right list -- well, I think it is, since I am developing a package and would like to create a vignette which is useful and convenient for my users. I know how to extract the vignette code. However, most of my users don't. Or if they

Re: [Rd] Changing style for the Sweave vignettes

2014-11-13 Thread Brian G. Peterson
On 11/13/2014 05:09 AM, January Weiner wrote: As a user, I am always annoyed beyond measure that Sweave vignettes precede the code by a command line prompt. It makes running examples by simple copying of the commands from the vignette to the console a pain. I know the idea is that it is clear wha

Re: [Rd] Changing style for the Sweave vignettes

2014-11-13 Thread Søren Højsgaard
To: r-devel |Subject: [Rd] Changing style for the Sweave vignettes | |As a user, I am always annoyed beyond measure that Sweave vignettes |precede the code by a command line prompt. It makes running examples by |simple copying of the commands from the vignette to the console a pain. I |know the idea

[Rd] Changing style for the Sweave vignettes

2014-11-13 Thread January Weiner
As a user, I am always annoyed beyond measure that Sweave vignettes precede the code by a command line prompt. It makes running examples by simple copying of the commands from the vignette to the console a pain. I know the idea is that it is clear what is the command, and what is the output, but I'