Re: [R] Sweave and the prompt

From: Duncan Murdoch <>
Date: Thu, 06 Mar 2008 19:34:35 -0500

On 06/03/2008 6:01 PM, Christophe Genolini wrote:
> Hi the list
> I would also like to remove the prompt, in order to let the reader
> cut-and-paste from pdf to R. So I set the prompt to " " with
> options(prompt=" ",continue=" ")
> But it add an extrat space at the start of each line. I also try some code
> options(prompt="\a",continue="\a")
> After a big figth in my office (my college did not like my new prompt
> :-) ), I gave up since it does not let the user cut-and-paste either...
> Is there any possibility to completly remove the prompt ?

You've got the source code, you can do anything.

But I'd say this is a bad idea: the prompt is there to make the code look familiar to the reader. You should be solving the cut and paste problem by using a better cutter and/or paster (e.g. the "Paste commands only" option in the Windows GUI).

Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 07 Mar 2008 - 00:41:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 07 Mar 2008 - 01:30:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive