Re: [R] Pause the execution of a function

From: Rolf Turner <>
Date: Fri, 29 Apr 2011 16:02:48 +1200

On 29/04/11 08:56, Lisa wrote:
> Hi, Rolf,
> Thank you for your help. I am trying to use readline() and I have a question
> about the maximum length of prompt string. The R help on readline() says:
> “The prompt string will be truncated to a maximum allowed length, normally
> 256 chars (but can be changed in the source code).”
> I don’t know how to change the source code. Could you please help how to get
> this done? Thanks.

Well, if you don't know how to change the source code, don't mess with it. It's not exactly simple.

Why on earth would you want a prompt string longer than 256 characters anyway? It seems to me that you need to think more carefully and clearly about what you are trying to do.

If you want to give lengthy instructions (lengthy instructions are probably a bad idea, but that's another matter) to users about what to key in as input,
use cat() prior to the invocation of readline().


             Rolf Turner mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 29 Apr 2011 - 04:05:14 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 29 Apr 2011 - 04:10:34 GMT.

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

list of date sections of archive