Re: [R] Can't get sample function from "An Introduction to R" to work

From: Thomas Lumley <>
Date: Sun 17 Jul 2005 - 00:58:45 EST

On Fri, 15 Jul 2005, David Groos wrote:

> Thank you-all very much for your help, your responses and help has been
> very encouraging. The following doesn't close the case but it tables
> it...
> First I copied Ken's code into my R Console worked great!
> That was baffling as it looked identical to mine.
> I did not explicitly say earlier that the code I sent out I had copied
> from the console, pasted into MS Word, changed font size, then pasted
> it into the e-mail--in other words, that was a copy of one of the codes
> that didn't work.

Mysterious syntax errors on OS X can result from copying and pasting into R. Files that look perfectly innocent can contain Windows line endings (\r\n) or en-dashes instead of hyphens. These might well be transparently fixed in the process of converting to email.

If you actually typed into the R console then this won't explain it, of course.

         -thomas mailing list PLEASE do read the posting guide! Received on Sun Jul 17 01:02:29 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:46 EST