[R] interactive session

2010-09-30 Thread Pam
Hi guys, My concern is to create an automated process from the beginning to the end. I want to copy all my code together in one piece and paste it to R console and sit back and relax :) except one moment in which the program should ask me to enter a number.. and only then (only after getting

Re: [R] interactive session

2010-09-30 Thread Niels Richard Hansen
Hi Fatih I believe that readLines(n=1) will do the job. It works fine from the Windows RGui, but I noticed that it hangs my Aquamacs/ESS when R runs from there, and a C-g was needed (which may be completely irrelevant to you). Best, Niels On 30/09/10 08.55, Pam wrote: Hi guys, My concern is

Re: [R] interactive session

2010-09-30 Thread Pam
Thanks Niels but it won't do.. please copy and paste the 2 lines below together to your console in order to see what I mean: cat(?); a-readLines(n=1) b-paste(t,a,sep=) anyone / any idea to overcome this problem? Best, Fatih Niels wrote: Hi Fatih I believe that readLines(n=1) will do the

Re: [R] interactive session

2010-09-30 Thread Peter Dalgaard
On 09/30/2010 03:33 PM, Pam wrote: Thanks Niels but it won't do.. please copy and paste the 2 lines below together to your console in order to see what I mean: cat(?); a-readLines(n=1) b-paste(t,a,sep=) anyone / any idea to overcome this problem? Best, Fatih You might want to

Re: [R] interactive session

2010-09-30 Thread Niels Richard Hansen
On 30/09/10 22.23, Peter Dalgaard wrote: On 09/30/2010 03:33 PM, Pam wrote: Thanks Niels but it won't do.. please copy and paste the 2 lines below together to your console in order to see what I mean: cat(?); a-readLines(n=1) b-paste(t,a,sep=) anyone / any idea to overcome this problem?

Re: [R] interactive session

2010-09-30 Thread jim holtman
You might want to use the tcltk package so you can bring up a window in which to input your data. This is better than trying to read from the console especially when 'sourcing' in some files or when cutting/pasting. On Thu, Sep 30, 2010 at 2:55 AM, Pam fkira...@yahoo.com wrote: Hi guys, My

Re: [R] interactive session

2010-09-30 Thread Phil Spector
If you don't mind the prompt of 1:, I think scan will do what you want: a = scan(n=1,what='',quiet=TRUE);b = paste(t,a,sep=''); 1: ada b [1] tada - Phil Spector Statistical Computing Facility

Re: [R] interactive session

2010-09-30 Thread Steven McKinney
: September-30-10 1:23 PM To: Pam Cc: r-help@r-project.org Subject: Re: [R] interactive session On 09/30/2010 03:33 PM, Pam wrote: Thanks Niels but it won't do.. please copy and paste the 2 lines below together to your console in order to see what I mean: cat(?); a-readLines(n=1) b