Re: [Rd] Wait for user input with readline()

2012-10-19 Thread torekp
jcharlto, Thank you thank you thank you, you just saved me about 7.9 hours! -- View this message in context: http://r.789695.n4.nabble.com/Wait-for-user-input-with-readline-tp3054517p4646826.html Sent from the R devel mailing list archive at Nabble.com. ___

Re: [Rd] Wait for user input with readline()

2010-12-08 Thread Alexandre
Thanks all, Even if I'm not an expert in programmation, I'll try to compile informations and try to sort my problem. Alexandre -- View this message in context: http://r.789695.n4.nabble.com/Wait-for-user-input-with-readline-tp3054517p3077878.html Sent from the R devel mailing list archive at N

Re: [Rd] Wait for user input with readline()

2010-12-07 Thread Greg Snow
l@r-project.org > Subject: Re: [Rd] Wait for user input with readline() > > > Hi, > > I have a similar problem as the one of Nate. The point is that I want > to > design an interactive script that need the value of two variables (x > and y). > > So my script as d

Re: [Rd] Wait for user input with readline()

2010-12-07 Thread Simon Urbanek
On Dec 7, 2010, at 12:19 PM, Petr Savicky wrote: > On Mon, Dec 06, 2010 at 08:25:39AM -0800, Alexandre wrote: >> >> Hi, >> >> I have a similar problem as the one of Nate. The point is that I want to >> design an interactive script that need the value of two variables (x and y). >> >> So my scr

Re: [Rd] Wait for user input with readline()

2010-12-07 Thread Petr Savicky
On Mon, Dec 06, 2010 at 08:25:39AM -0800, Alexandre wrote: > > Hi, > > I have a similar problem as the one of Nate. The point is that I want to > design an interactive script that need the value of two variables (x and y). > > So my script as designed for the moment is : > > x <- as.numeric (re

Re: [Rd] Wait for user input with readline()

2010-12-07 Thread Alexandre
Hi, I have a similar problem as the one of Nate. The point is that I want to design an interactive script that need the value of two variables (x and y). So my script as designed for the moment is : x <- as.numeric (readline(prompt="What is the value of x? ")) y <- as.numeric (readline(prompt="

Re: [Rd] Wait for user input with readline()

2010-11-23 Thread Prof Brian Ripley
What you have not done is told us how you run the script. On Mon, 22 Nov 2010, Nathan Miller wrote: Hello, I am trying write a script that includes a prompt for user input using readlines() and was told that folks at R-devel might be able to help. (But this is an R-help question.) readline(

[Rd] Wait for user input with readline()

2010-11-22 Thread Nathan Miller
Hello, I am trying write a script that includes a prompt for user input using readlines() and was told that folks at R-devel might be able to help. I am running into the problem that when I run readlines() as a single line the prompt works perfectly, but when I try to run a block of code which i