[R] readline() and Rterm in Windows

Mikkel Grum mi2kelgrum at yahoo.com
Wed Nov 2 18:03:57 CET 2005


I'm running an R script in Rterm and would like the
user to be prompted for input as in:

id <- readline("Please enter ID: ")
myfunction(id)

. . . etc.

This works when I run one line at a time in RGui, but
not when I try to run the script in Rterm (I'm working
with R 2.2.0 in Windows Server 2003).

Is there any way to do this?

Mikkel




More information about the R-help mailing list