In order to get user input when running a batch file with Rterm in Windows
XP and Windows Server 2003, I have been using the R script below with
R-2.8.1 and earlier. This opens a command line window with the statement
"Please enter the ID:" and feeds the users response into the variable 'id'.

conout <- file('CONOUT$', 'w')
conin <- file('CONIN$', 'r')
cat('Please enter the ID: ', file = conout)
flush(conout)
id <- readLines(conin, 1)
flush(conin)
...


When I upgraded to R-2.10.0 it no longer worked. I cannot from the NEWS
files see what changed and much less what might work? Any ideas?

***************************
Mikkel Grum
+254 20 2345285
+254 720639599 (mobile)
mikkelgrum (Skype)

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to