From murdoch.duncan at gmail.com  Sun Apr 15 22:06:31 2012
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Sun, 15 Apr 2012 16:06:31 -0400
Subject: [Rd] no carriage returns in BATCH output from 2.15.0
In-Reply-To: <4F8B0846.1030508@statistik.tu-dortmund.de>
References: <4F8AFD7C.1030905@pburns.seanet.com>
	<4F8B0846.1030508@statistik.tu-dortmund.de>
Message-ID: <4F8B2A47.1070203@gmail.com>

On 12-04-15 1:41 PM, Uwe Ligges wrote:
>
>
> On 15.04.2012 18:55, Patrick Burns wrote:
>> It seems like I must be missing something
>> since I haven't been able to find mention
>> of this.
>>
>> Under Windows 7 I'm not getting carriage returns
>> in the output of BATCH files using 2.15.0 (both
>> 64-bit and 32-bit). They are in the startup
>> messages, but not for the real output. Is this
>> on purpose?
>
> This is probably a CR/LF issue - and you editor does not interpret
> Unix-like line endings correctly.

The problem is that R writes CR/LF on some lines, just LF on others.  I 
see this in 2.15.0 and R-devel.  I'll try to track it down.

To reproduce, I put these lines into test.R:

x <- 1
x
2

and then ran

Rcmd BATCH test.R

The test.Rout file has the messed up line endings.

Duncan Murdoch



[Rd] no carriage returns in BATCH output from 2.15.0
Duncan Murdoch