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 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 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 a valid number from me) it should >continue to read and process the rest of the code. I�tried�lots of things >(readline, readLines, scan, interactive, ask, switch,...) and read manuals and >searched help forums.. I found several similar questions but never a satisfying >answer.. so now it became a challenge.. any idea how�to�overcome this >problem (R >2.11.1 for Windows)? (an example�code is below)� > >Best, >Fatih [[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.