[R] Turning on helpful errors in interpreter? was Re: problem with simple if() statement

From: Patricia J. Hawkins <phawkins_at_connact.com>
Date: Sun 12 Feb 2006 - 08:25:56 EST

Evidently, my R has some feature of error messages disabled.

>>>>> "NG" == Norman Goodacre <taranpen@yahoo.co.uk> writes:

NG> the following code apprantely, for some grand old reason, induces a syntax error: NG> if (seq[i] = "A") m <- trans[1,]

NG> Error: syntax error in "if (seq[i] ="

Where Norman gets this nice error message pointing to the exact location of the error, all I get is:

> if (1=1) 5
Error: syntax error
>

How do I turn on more-verbose error messages? Is this an environmental issue, or a build issue?

This is a debian (ubuntu breezy) build; happens even when I run R --vanilla

R.version

         _
platform i486-pc-linux-gnu

arch     i486             
os       linux-gnu        
system   i486, linux-gnu  
status                    
major    2                
minor    1.1              
year     2005             
month    06               
day      20               
language R                

TIA!

-- 
Patricia J. Hawkins
Hawkins Internet Applications
www.hawkinsia.com

______________________________________________
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
Received on Tue Feb 14 04:22:14 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:29 EST