Exactly how are you using it? How you executing your script? Are you using cut/paste or source? Have you tried 'readline'?
More details on what you mean by it does not work as expected. On Thu, Jul 9, 2009 at 2:24 PM, Mark Knecht<markkne...@gmail.com> wrote: > When I use the scan function in the Rgui console it works as expected. > However it seems that when I put the same command in a script file it > doesn't wait for input. > > Is there an option to scan to make it wait for input when used in a > script? Or is there possibly a different function that will do in a > script the same sort of thing as scan does in the console? > > Thanks, > Mark > > ______________________________________________ > 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ 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.