Skip to content
Prev 13358 / 398502 Next

Prompt with scan()

I was using it for a prompt in my functions that index the CRAN
packages: I have a line

answer <- substr(myreadline("Delete temporary index files (y/N)? "), 1, 1)

(37 characters in the prompt string)
  I wouldn't imagine using readline with a prompt more than 80 characters,
but it's hard to see why it would hurt to make CONSOLE_PROMPT_SIZE equal
to 256, or even 512 ... people always end up using things in ways you
didn't expect, and in this case it seems harmless.

  thanks,
    Ben Bolker
On Thu, 6 Sep 2001, Prof Brian D Ripley wrote: