From murdoch at stats.uwo.ca  Thu Nov  2 22:39:52 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Thu, 02 Nov 2006 16:39:52 -0500
Subject: [Rd] Syntax Error in Rcmd check on Windows
In-Reply-To: <45479EFF.7060708@stats.uwo.ca>
References: <84fc09fb0610310538v1d80061cr65553e95a63f1329@mail.gmail.com>	
	<454794BE.4020807@stats.uwo.ca>
	<84fc09fb0610311050r27a5c4c9tff859e577ea205a1@mail.gmail.com>
	<45479EFF.7060708@stats.uwo.ca>
Message-ID: <454A65A8.8000106@stats.uwo.ca>

On 10/31/2006 2:07 PM, Duncan Murdoch wrote:
> On 10/31/2006 1:50 PM, Michael Hoehle wrote:
>>> Thanks for pointing me to the source.  I can reproduce the problem, and
>>> I'm fairly sure it's an R bug, not a problem in your source.  I need to
>>> trace through at a low level to confirm this and to work out the fix.
>>>
>> 
>> It reassuring to know that the problem appears not to be with my code.
>> Thanks for your help so far and hopefully you are able to find the
>> bug! Let me know when you know more.
>> 
>> Michael
>> 
>> P.S. When I do a dos2unix on RLadyBug-Ex.R "Rterm --no-save <
>> RLadyBug-Ex.R " works fine.
> 
> Yes, the problem has to do with the CR LF line ends in the file.  For 
> some reason R switches from handling those properly to not doing so. 
> The problem I'm having right now is that I can't do input redirection in 
> gdb in Windows, so it's really hard to see when the switch happens, or why.

I'm now fairly sure this isn't an R bug after all.  It goes away if I 
edit out the requirement in RLadyBug for rJava, which makes me think 
that rJava is somehow messing up R's input routines.  (Rcmd check fails 
later when it can't find  ".jnew", as you'd expect.  But there's no 
spurious syntax error.)

Because of the difficulties with the debugger I'm going to quit now; if 
you find any evidence that suggests it really is R's bug after all, 
please let me know.

Simon, let me know if there are any tests I can do to help track this down.

Duncan Murdoch




[Rd] Syntax Error in Rcmd check on Windows
Duncan Murdoch