Re: [R] R.app "incompatable" with Emacs

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Fri, 21 Mar 2008 08:50:55 -0400

Emacs normally recognizes line endings and opens the file correctly. Therefore the
first place to look is in the file itself. When some of the lines have ^M and others do
not, then emacs assumes you have LF-only line endings and displays the ^M character.

The preventive action is to correct the original writing of the file. The corrective
action is to remove all the ^M characters with, for example M-x replace-string RET C-q C-m RET RET and save the repaired file.

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of Fredrik Lundgren
Sent: Friday, March 21, 2008 04:49 AM
To: r-help_at_r-project.org
Subject: [R] R.app "incompatable" with Emacs

Dear R-users on the Mac,

With Leopard 10.5.2, R.app GUI 1.23, and Emacs 22.1.1 (i386-apple- darwin9, Carbon Version 1.6.0)
I've got the following problem. When editing foo.R in R.app I get myriads of ^M (end-of-line or CR?) in the file when opened with Emacs. This isn't trivial to me as I shift between R.app and Emacs/ESS.
Any simple tweak?

Fredrik



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 21 Mar 2008 - 12:54:43 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 Fri 21 Mar 2008 - 18:30:22 GMT.

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

list of date sections of archive