Re: [Rd] dos-style line endings in .Rbuildignore result in files not being excluded

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue, 14 Oct 2008 12:55:51 +0100 (BST)

On Tue, 14 Oct 2008, Sebastian P. Luque wrote:

> On Mon, 13 Oct 2008 23:10:41 -0600,
> Tony Plate <tplate_at_acm.org> wrote:
>
>> I was trying, on a Linux system, to get a .Rbuildignore file to work.
>> After far too long, I found the problem was the <CR><NL> line endings
>> in the .Rbuildignore file -- I had originally created it on a Windows
>> system, and emacs in Ubuntu was politely hiding that fact from me.
>
> Are you sure? Whenever I open M$ files in Emacs under Debian I see
> '(DOS)' near the left end of the modeline, which indicates that it has
> ^C as EOL. This has been the case since at least 21.0.

^M^J, I think you mean (CRLF).

Emacs is not totally consistent about how it does this: since it tries to guess the file encoding it will usually indicate (DOS) on the mode line, but not always (and it sometimes displays the ^M's, even on Windows).

But to the point: how often do people get DOS-style files on a Unix-alike? You have to work pretty hard to do this, and there comes a point at which complicating R to workaround wrongly encoded files is not worth the trouble. Let's see if anyone else reports having done this.

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 14 Oct 2008 - 11:59:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 14 Oct 2008 - 16:30:19 GMT.

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

list of date sections of archive