Re: [R] Reading user input

From: Charilaos Skiadas <skiadas_at_hanover.edu>
Date: Wed 04 Apr 2007 - 12:31:13 GMT

I think the problem the OP may be having is that the code will not work if you put it in a document window in R and then tell R to "source the document". At least not with R.app in MacOSX. This is what happened when I did it:

> source("/tmp/Rtmp0TQfA6/file10d63af1")
enter the number of groups: unlink("/tmp/Rtmp0TQfA6/file10d63af1")

Then the value of ANSWER is:

> ANSWER

[1] "unlink(\"/tmp/Rtmp0TQfA6/file10d63af1\")"
>

If instead you select the lines and select the "Execute" option, then it does the right thing. (These options appear under the Edit menu in R.app, don't know about other platforms).

On Apr 4, 2007, at 7:36 AM, jim holtman wrote:

> That is exactly what the code does.

Haris Skiadas
Department of Mathematics and Computer Science Hanover College



R-help@stat.math.ethz.ch 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. Received on Wed Apr 04 22:34:22 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 04 Apr 2007 - 13:31:00 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.